Why do I get a 0 value for my @@identity field?
Good Day,
I have a form that retrieves the next available auto-number value of a field in MSACCESS 2000 every time it loads, unfortunately it returns a 0 value. Here is my code:
connection.Open();
int newid;
OleDbCommand command = new OleDbCommand("Select @@identity From IssuanceHeader", connection);
newid = (int) command.ExecuteScalar();
txtIssuanceNo.Text = newid.ToString();
connection.Close();
Is there something wrong?
hey_mr_artPosted Jun 20, 2004, 10:44 PM
sjonesPosted Jun 19, 2004, 9:53 AM
hey_mr_artPosted Jun 11, 2004, 10:26 PM
send2manivannanPosted Jun 7, 2004, 6:33 AM