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
SQL Server 2008 - can't insert and see polish characters in SQL table
Receiving error when submitting data to SQL Server through asp.net vb
Replace Windows 2000 Server with 2003 server
Is there a way to export a SharePoint group to an excel file?
Infopath Multiple-Selection List Box: linked to access and list populated from Access table
Can I make Sharepoint sites or folders invisible to users without rights?
Moving an image along side the Mouse Pointer moves
microsoft access query criteria to retrieve specific records based on a reference number and part number
aspx vnbet dropdownlist client script
Access 2007 getting message "you do not have the necessary permissions to use"