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

Validate a unique user-name in MS access database

Status
Not open for further replies.

mal54

Programmer
Mar 11, 2002
13
AU
I have developed a form to enter client details with an index on the user name requiring users to have a unique user name. If I enter a user name the same as one already in the data base an error is generated by MS Access however the message is not user friendly. How do I inform the user in a better way if on error that they are required to have a different user name.
 
Query the database first (before trying to add the entry), checking to see if the same entry already exists. If it does, just tell them to use a diff name.
 
Thank you for the advice, some code would be nice as I don't know enough about coding.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top