D
Dan Keeley
Hi.
I'm inserting a record into a DB, how do i get the value back of an
AutoNumber field so i can use it in subsequent SQL statements?
At the moment I have code vaguely like this:
Dim selectCMD As OleDbCommand = New OleDbCommand("INSERT into AuditItems (
ParentAuditID, section, score, comments) values('1')", conn)
MsgBox(selectCMD.ExecuteNonQuery())
I presume this is quite easy, maybe i'm doing it the wrong way...
Thanks for any help in advance!
Rgds,
Dan
I'm inserting a record into a DB, how do i get the value back of an
AutoNumber field so i can use it in subsequent SQL statements?
At the moment I have code vaguely like this:
Dim selectCMD As OleDbCommand = New OleDbCommand("INSERT into AuditItems (
ParentAuditID, section, score, comments) values('1')", conn)
MsgBox(selectCMD.ExecuteNonQuery())
I presume this is quite easy, maybe i'm doing it the wrong way...
Thanks for any help in advance!
Rgds,
Dan