Hi,
Could someone please help?! I have this error and can't figure it out
The error i am getting is:
*********************************************
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'EOF'
/fido/admin/regSessionReport.asp, line 42
*********************************************
My code is below, line 42 is highlighted in red
***********************************************
corpID = Request("corpID"
deviceID = Request("deviceID"
eventTime = Request ("eventTime"
Dim sql, conn, rs
Set conn = server.CreateObject("ADODB.Connection"
Set rs = server.CreateObject("ADODB.Recordset"
conn.Open strWirelessDBConnect
sql = "SELECT * FROM event_log WHERE device_id = """ & deviceID & """ AND event_time < """ & eventTime & """"
rs = conn.Execute (sql)
If Not rs.EOF Then
%><table border=1 cellpadding=0 cellspacing=0><%
While Not rs.EOF
Response.Write "<tr>" & _
"<td>" & event_time & "</td>" & _
"<td>" & query_string & "</td>" & _
"</tr>"
Wend
%></table><%
End If
Set rs=Nothing
Set Conn = Nothing
%>
Thank you
Could someone please help?! I have this error and can't figure it out
The error i am getting is:
*********************************************
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'EOF'
/fido/admin/regSessionReport.asp, line 42
*********************************************
My code is below, line 42 is highlighted in red
***********************************************
corpID = Request("corpID"
deviceID = Request("deviceID"
eventTime = Request ("eventTime"
Dim sql, conn, rs
Set conn = server.CreateObject("ADODB.Connection"
Set rs = server.CreateObject("ADODB.Recordset"
conn.Open strWirelessDBConnect
sql = "SELECT * FROM event_log WHERE device_id = """ & deviceID & """ AND event_time < """ & eventTime & """"
rs = conn.Execute (sql)
If Not rs.EOF Then
%><table border=1 cellpadding=0 cellspacing=0><%
While Not rs.EOF
Response.Write "<tr>" & _
"<td>" & event_time & "</td>" & _
"<td>" & query_string & "</td>" & _
"</tr>"
Wend
%></table><%
End If
Set rs=Nothing
Set Conn = Nothing
%>
Thank you