Hi there people,
I am working on a database that will be running on a network - Anyway i have split the db - Everything i running just fine, so we decided to test the validation on the forms - (By the way i am using ADO). If there is an interval between the users making an entry into the same table it works just fine - but when tested by say 2 users clicking save at the same time neither form validates the data and duplicate entries can be made. Here is how i am Validating at form level:
Button Click (CMDSAVE)
Requery recordset 'to get the latest records
if recordcount > 0 then move to first record
loop thru the records and compare with the record to be added
if match found exit sub and msgbox error
else
add the record
Any Thoughts??
Bert
I am working on a database that will be running on a network - Anyway i have split the db - Everything i running just fine, so we decided to test the validation on the forms - (By the way i am using ADO). If there is an interval between the users making an entry into the same table it works just fine - but when tested by say 2 users clicking save at the same time neither form validates the data and duplicate entries can be made. Here is how i am Validating at form level:
Button Click (CMDSAVE)
Requery recordset 'to get the latest records
if recordcount > 0 then move to first record
loop thru the records and compare with the record to be added
if match found exit sub and msgbox error
else
add the record
Any Thoughts??
Bert