Hi,
I have an ASP page which runs a select statement such as
QueryA = "SELECT............ ;"
Set RS_A = adoDataConn.Execute(QueryA)
(adoDataConn is set in a hidden include file).
If I run RS_A and pull out the records, I then want to run another
query on a seperate table but where one field is common.
QueryB = "SELECT.........;"
Set RS_B = adoDataConn.Execute(QueryB)
I am always getting the following error:
ADODB.Recordset.1 error '80004005'
SQLState: 42000
Native Error Code: 1064
[TCX][MyODBC]You have an error in your SQL syntax near
'ProductPackREC.JobNumber = 5578' at line 1
I cannot see any error in my SQL apart from the fact that I am calling
adoDataConn twice without doing anything in between it ?
What do I need to do to run both queries happily on the same page ?
Appreciate your help
David.