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
When does System.IO.Ports.SerialPort<wbr /> DataReceived event fire?
A custom macro in this report has failed to run, and is preventing the report from rendering.
specifications for "lagetfields" function?
C# -- "Value==null"
Automatically create separate tables from an SQL table defined by field value
Data Encription
Duplicate rows in Datatable
I have the total amount of sales for the month, but I need to split commission between 3 Areas.
"Error 1327 Invalid Drive F:/" on Sprint USB Wireless Installation
Upgrade from MSSQL 2005 Express to MSSQL 2008 Standard