+ Reply to Thread
Results 1 to 3 of 3

Detect duplicates in user form text boxes

  1. #1
    Registered User
    Join Date
    08-23-2008
    Location
    USA
    Posts
    9

    Detect duplicates in user form text boxes

    Hi,

    I have a user form with 4 text boxes and a command button. I have no problem looping through the textboxes to retrieve the value, but what is the best way to detect if any duplicates exist between the four text boxes?

    For example, in the command button's code:

    If textbox one's value is "test" and textbox four's value is also "test", it should throw an exception.

    If a question like this has already been answered, a link to that post would surely suffice.

    Thank you
    Last edited by ds84; 06-14-2009 at 12:17 AM.

  2. #2
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Detect duplicates in user form text boxes

    Hi, Try this:-
    Please Login or Register  to view this content.
    Regards Mick

  3. #3
    Registered User
    Join Date
    08-23-2008
    Location
    USA
    Posts
    9

    Re: Detect duplicates in user form text boxes

    Quote Originally Posted by MickG View Post
    Hi, Try this:-
    Please Login or Register  to view this content.
    Regards Mick
    Works great, thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1