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 : Validation Records Before Insert
users cannot open Tiff files in outlook in a Terminal server enviroment
SQL Query writing
Access MasterPage Function from UserWebControl Referenced from MasterPage
Merge two pdf documents using Ghostscript
Access 2003 Macro Question: How to set focus to a specific tab on a tab control within an existing macro?
Populate Text box based on combo box
Access 2000 Relink front-end to back-end tables using a path supplied by an .ini file
Need to update first booking of the day for each person within a time period
decrease update interval/speed of shared mailbox exchange 2003 and entourage