I'm inserting this record in an SQL table with auto incrementing field thing. This bit works fine (after I've declared my variables based on request.form and included connection file etc.)
sSql = "INSERT INTO AM(" &_
"QR, BLAH) VALUES('" & qr & "','" & blah & "','" & "') SELECT @@IDENTITY as NEWID"
It works fine in that it inserts the record but now what? How do I do anything with that @@IDENTITY variable and is it even in the right place? I would ideally like to response.redirect with a querystring based on the Auto_id just made. Please help. Some grammar, someone?
Cheers
Sarah
sSql = "INSERT INTO AM(" &_
"QR, BLAH) VALUES('" & qr & "','" & blah & "','" & "') SELECT @@IDENTITY as NEWID"
It works fine in that it inserts the record but now what? How do I do anything with that @@IDENTITY variable and is it even in the right place? I would ideally like to response.redirect with a querystring based on the Auto_id just made. Please help. Some grammar, someone?
Cheers
Sarah
WASN'T FIT ENOUGH FOR THE POLICE FORCE