Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Checking field for duplicates

Status
Not open for further replies.

Trazzel

Programmer
Jul 10, 2003
11
0
0
US
How does one check to see whether or not a duplicate PIN ID number has been entered into the text box field, send a message "A duplicate number has been found, please choose another", check that number for any duplicates and if all is OK, move on.
The program I wrote sends a message for every number that is entered AND allows for the user to tab right through a duplicate number.

Thank you
 
If the textbox is part of a bound form, then set the field to require unique values in the table design (or make it the primary key).

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top