Hi!
One possibility is, that you do an other sql-statement where you try to select the desired ProduktID:
string sqlString = "Select ProductID FROM Product where ProductID="+txtProductID.Text;
OleDbCommand dbCmd = new OleDbCommand(sqlString, mDB);
mDB.Open();
OleDbDataReader reader = dbCmd.ExecuteReader();
if (reader.Read())
{
MessageBox.Show("ID exixst");
}
else
{
// do something else here
}
I have not tested the code, but i think this should work!
Daniel