T
thsman
Here is the query;
strSQL = ("SELECT * FROM bills WHERE sessionID = " & ThisSession & "
AND filename = '" & ThisFile & "' AND size = '" & ThisSize & "'")
sessionID is a number, filename is a string, size is also a string.
I'm getting this error "error '80004005'"
It is failing at this line of code
rsShopper.Open strSQL, adoCon
If I take out one of the AND conditions it works fine but obviously
that isn't what I want to do.
This is running from an asp page connecting to an Access mdb.
Here are the relevant lines of code;
strSQL = ("SELECT * FROM bills WHERE sessionID = " & ThisSession & "
AND filename = '" & ThisFile & "' AND size = '" & ThisSize & "'")
rsShopper.CursorType = 2
rsShopper.LockType = 3
rsShopper.Open strSQL, adoCon
Any help will be appreciated.
Bernie
strSQL = ("SELECT * FROM bills WHERE sessionID = " & ThisSession & "
AND filename = '" & ThisFile & "' AND size = '" & ThisSize & "'")
sessionID is a number, filename is a string, size is also a string.
I'm getting this error "error '80004005'"
It is failing at this line of code
rsShopper.Open strSQL, adoCon
If I take out one of the AND conditions it works fine but obviously
that isn't what I want to do.
This is running from an asp page connecting to an Access mdb.
Here are the relevant lines of code;
strSQL = ("SELECT * FROM bills WHERE sessionID = " & ThisSession & "
AND filename = '" & ThisFile & "' AND size = '" & ThisSize & "'")
rsShopper.CursorType = 2
rsShopper.LockType = 3
rsShopper.Open strSQL, adoCon
Any help will be appreciated.
Bernie