Hello,
I try to find the ID of an inserted row.
this is my code:
Is it possible to get the ID of this row after the insert?
I try to find the ID of an inserted row.
this is my code:
Code:
OleDbConnection Connection = new OleDbConnection();
Connection = dbase(Connection);
// Create an OleDb command,
OleDbCommand command = new OleDbCommand();
command.Connection = Connection;
command.CommandText = "insert into Bedrijven (Bedrijf,Contactpersoon,Adres,Postcode,Plaats,Tel,Mobiel,Fax,Email,Website,kvk,btw,debiteurnr,opmerkingen) values('" + Bedrijf + "','" + Contactpersoon + "','" + Adres + "','" + Postcode + "','" + Plaats + "','" + Tel + "','" + Mobiel + "','" + Fax + "','" + Email + "','" + Website + "','" + KVK + "','" + BTW + "','" + Debiteurnr + "','" + Opmerkingen + " ') ";
command.ExecuteNonQuery();
Is it possible to get the ID of this row after the insert?