THE CODE BELOW produces the ERROR BELOW
con1 = "DSN=QC4ID"
set rs1 = server.CreateObject("ADODB.Recordset"
strSQL1 ="SELECT * FROM "& doc &" WHERE number=" & snum
rs1.Open strSQL1, con1,1,3
picture = rs1("filename"
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] Syntax error in query. Incomplete query clause.
/qc4id/doc.asp, line 31
I have tried:
strSQL1 = "SELECT * FROM '" & doc & "'" &" WHERE number=" & snum
and 2 dozen similar versions.
The variable used in the table position is the troublemaker but I don't know how to fix it.
Help Please,
JC
--only those that do not try, fail--
con1 = "DSN=QC4ID"
set rs1 = server.CreateObject("ADODB.Recordset"
strSQL1 ="SELECT * FROM "& doc &" WHERE number=" & snum
rs1.Open strSQL1, con1,1,3
picture = rs1("filename"
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] Syntax error in query. Incomplete query clause.
/qc4id/doc.asp, line 31
I have tried:
strSQL1 = "SELECT * FROM '" & doc & "'" &" WHERE number=" & snum
and 2 dozen similar versions.
The variable used in the table position is the troublemaker but I don't know how to fix it.
Help Please,
JC
--only those that do not try, fail--