PDA

View Full Version : code to stop adding names twice in a DB


Jel Student
05-26-2005, 08:59 PM
I need a code for an isvaliddata that will stop you from adding the same name and information to a database more then once.

oracleguy
05-26-2005, 09:29 PM
Alright, cool but remember we are coders not telepaths, like what programming language and database you are working with would be a great help.

One way on the database side to prevent duplication of data would be to make a uniqueness constraint on your name column and that would cause any query that would insert the same data in to fail.

Jel Student
05-27-2005, 01:16 AM
Sorry. Visual Basic 6.0 and MS Access 2003