techsponge
Technical User
How can you ensure a form will not allow duplicate records to be created?
My form has 6 fields that are from table 'tblemployee'. The control names and database field names are the same.
name
DOB
position
hire date/time
pay rate
badge #
When a user enters 'BOB, SMITH' in the name field and '2/8/2006 11:00:00 AM' in the hire date field, if this combination exists in the database do not allow the user to proceed?
My form has 6 fields that are from table 'tblemployee'. The control names and database field names are the same.
name
DOB
position
hire date/time
pay rate
badge #
When a user enters 'BOB, SMITH' in the name field and '2/8/2006 11:00:00 AM' in the hire date field, if this combination exists in the database do not allow the user to proceed?