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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Checking for duplicate ID numbers

Status
Not open for further replies.

hwmueller

Technical User
Jan 16, 2001
155
Hi

I have a database where users choose subjects for their course and identify themselves by means of their unique student ID. This number acts also as the primary key. How can I write code that checks the student details table to ensure that the ID in question hasn't already been used?

Thanks

Hans
 
set the tables index to no duplicates and it will do that for you.

Or Dlookup, or a query or .findfirst .nomatch etc...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top