D
D. Leger
Hello all,
I'm using the following code to add records to a SQL Server Express database
table using an INSERT statement in the SQL string.
Set cnt = CreateObject("ADODB.Connection")
With cnt
.ConnectionString = connString
.Open
.Execute sqlString
.Close
End With
The table I add data to has an auto-increment Record_No field (Identity
Increment). It is also the primary key. How do I determine this record_no? I
need it to subsequently add data to another table.
Thanks
I'm using the following code to add records to a SQL Server Express database
table using an INSERT statement in the SQL string.
Set cnt = CreateObject("ADODB.Connection")
With cnt
.ConnectionString = connString
.Open
.Execute sqlString
.Close
End With
The table I add data to has an auto-increment Record_No field (Identity
Increment). It is also the primary key. How do I determine this record_no? I
need it to subsequently add data to another table.
Thanks