I get the above error message when I run my asp script. The error points to the line "If Not usertable.EOF Then". I am trying to update an MS Access database. The update works but I get the error anyway. I'm not using Recordsets so I'm puzzled. I'm also new at this game so I'm sure I've made some basic mistake. My code is below. Can someone help? Thanks
<%
Set ObjPBase=Server.CreateObject("ADODB.Connection"
objPBase.Open "authentix"
SQL="UPDATE [authentix] SET [password] = '" & Request("newpassword" & "'"
SQL=SQL & "WHERE [logname] = '" & Request("logname" & "'"
SQL=SQL & " AND "
SQL=SQL & "[password] = '" & Request("oldpassword" & "';"
Set usertable = objPBase.Execute (SQL)
If Not usertable.EOF Then
Response.Write "<br>"
Response.Write "Your Password Has Been Changed"
count = count +1
End If
If count = 0 Then
Response.Write "<br><br><br><center><strong>"
Response.Write "Unable to Match Your Username and Old Password<br>"
Response.Write "</strong></center>"
End If
objPBase.Close
%>
<%
Set ObjPBase=Server.CreateObject("ADODB.Connection"
objPBase.Open "authentix"
SQL="UPDATE [authentix] SET [password] = '" & Request("newpassword" & "'"
SQL=SQL & "WHERE [logname] = '" & Request("logname" & "'"
SQL=SQL & " AND "
SQL=SQL & "[password] = '" & Request("oldpassword" & "';"
Set usertable = objPBase.Execute (SQL)
If Not usertable.EOF Then
Response.Write "<br>"
Response.Write "Your Password Has Been Changed"
count = count +1
End If
If count = 0 Then
Response.Write "<br><br><br><center><strong>"
Response.Write "Unable to Match Your Username and Old Password<br>"
Response.Write "</strong></center>"
End If
objPBase.Close
%>