Microsoft
Software
Hardware
Network
Question : How to prevent duplicate records on the form UI?
I have a form, the query behind the form is like:
select field1, field2, field3, field4... field8 from tblTest
On the form, it's possible there are two records which have the same field values: field1 ... field 8.
How to prevent users from inserting duplicate records in the form (suppose not to change the table design)? Thanks.
Answer : How to prevent duplicate records on the form UI?
Fire 'SELECT' query before you actually insert the record. Traverse through the recordset returned by SELECT query and check if the field name already exists. If it does, show and error and if it doesn't call INSERT query.
Random Solutions
How to create SQL recordset for this table
Custom Password Filter Windows 2003
Undefined Functions in Access 2003 MDE
How do I copy a template excel sheet in the same workbook in order to populate the new sheet with data from my database
How to find out who has an Access 2003 database locked
import xml file from Outlook email attachment?
SBS 2003 ISA 2004 LAT problem
Cannot open database -- VBA Project corrupt
Password for installed application?
Announcement Webpart to show on all sites