I need to select a recordset by ID number.
Had planned on doing this by sending the ID as a querystring from the requesting link.
Then something like this:
But this errors out. I guess it is because the ID integer pulled onthe previous page is sent as a 'string' so conflicting with the ID field being autonumber in the db.
Is there a way to turn the string back into an integer to use in the SQL statement or is my SQL statement at fault?
Thanks again.
Had planned on doing this by sending the ID as a querystring from the requesting link.
Then something like this:
Code:
deltarget=Request.Querystring
"SELECT * FROM reftable WHERE ID=" & deltarget & "'"
But this errors out. I guess it is because the ID integer pulled onthe previous page is sent as a 'string' so conflicting with the ID field being autonumber in the db.
Is there a way to turn the string back into an integer to use in the SQL statement or is my SQL statement at fault?
Thanks again.