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
All memory used by SQL Server 2008 + Reporting Services
ORA-12514 TNS:listener does not currently know of service requested in connect (yet agian?)
Excel graph in access not updating
SBS 2008/Exchange 2007 - offsite website hosting by 1 and 1
Checking a Dataset for DBNull whiclst using the Compute SUM function
CEdit GetWindowText() for a UNICODE string
Why wont a hp laptop power up?
Unable to open SQL Server database file (.mdf)
Home network - pc keeps losing internet connection
Explorer.exe breadcrumbs control( How do I get the windows handle?)