Hi all,
Can any one help me how to get a field (auto-number field)
after I add a new row to the table using ExecuteNonQuery () method
so, how do we select the rowNum row from a table?
I'm using MS Access
plz help me...
thanks in advanced ....
Can any one help me how to get a field (auto-number field)
after I add a new row to the table using ExecuteNonQuery () method
Code:
string insertStmnt = @"INSERT INTO Student (stName) VALUES (@stName)";
OleDbCommand comm = new OleDbCommand(insertStmnt, myconn);
OleDbParameter param = new OleDbParameter("@stName",stNameVal);
comm.Parameters.Add(param);
int rowNum = comm.ExecuteNonQuery();
I'm using MS Access
plz help me...
thanks in advanced ....
Comment