I want to create a program that has a 'Add' button. When the user clicks the 'Add' button to add new record into Access table, the program will first search the database to ensure that there is no duplicate.
If there is a duplicate, it would not add, otherwise it will add it into the table.
An example would help much.
P.S. in my coding, do I use the foreach loop?
e.g. something like this (not very sure of the syntax):
foreach (DataTable table in dataSet1.Tables)
foreach ( DataRow row in table.Rows)
//some code here to determine if there is any duplicate