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
Bond Value Calculation
updates for Office Communication Server 2007 R2
Capture/crop non-rectangular objects in screenshots for use in PowerPoint 2007
What are the Interview Questions expected for WSS 3.0 having 1.5 to 2 years of experience.
Unbound subform will not requery correctly
Is there a way to unlock sql 2000 processes rather than killing it?
xbox rockband & lips microphones
Runtime error 2220
Remove all other data and leave just the data in the txt file. Need to delete the colums where data match in row 1.
Exchange 2010 Entourage