Question how to check whether the record already existed in ms-access database

Adam Insyirahnadia

New member
Joined
Feb 6, 2012
Messages
3
Programming Experience
Beginner
when a save button clicked, the username textbox is added to the database otherwise if the username already existed then a message appeared to tell user it is already taken.. any example please..tq
 

jmcilhinney

VB.NET Forum Moderator
Staff member
Joined
Aug 17, 2004
Messages
14,349
Location
Sydney, Australia
Programming Experience
10+
You simply query the database. How would you usually get a record from the database by username? That's exactly what you do here. If there is no matching record then you know the new value is not a duplicate.
 
Top Bottom