I'm not all that new to asp but can't seem to get past this problem. This query works fine without the where clause, but I get the error 80004005 with it.
SessionID=Session.sessionID
Set cn = Server.CreateObject("ADODB.Connection")
Set rs = Server.CreateObject("ADODB.Recordset") cn.ConnectionString = "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA Source=" & server.MapPath("/_database/db2004.mdb")
cn.Open
SQL="Select count(*) from table1 where (Session = '" & SessionID & "' )"
'SQL="Select * from table1 " this works
cn.Execute(SQL) 'this is the line # on error
any help would be great
SessionID=Session.sessionID
Set cn = Server.CreateObject("ADODB.Connection")
Set rs = Server.CreateObject("ADODB.Recordset") cn.ConnectionString = "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA Source=" & server.MapPath("/_database/db2004.mdb")
cn.Open
SQL="Select count(*) from table1 where (Session = '" & SessionID & "' )"
'SQL="Select * from table1 " this works
cn.Execute(SQL) 'this is the line # on error
any help would be great