Hello I am getting the following error message: Microsoft VBScript runtime (0x800A01A8)
Object required: ''''
/delete_entry.asp, line 17
When I try to delete a record. The following is the code to the delete_entry.asp page.
<%
Dim adoCon
Dim rsDeleteEntry
Dim strSQL
Dim IngRecordNo
IngRecordNo = CLng(Request.QueryString("ID_no"))
Set adoCon = Server.CreateObject("ADODB.Connection")
adoCon.Open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("ccalls.mdb")
Set reDeleteEntry = Server.CreateObject("ADODB.Recordset")
strSQL = "SELECT calltable.* FROM calltable WHERE ID_no=" & IngRecordNo
rsDeleteEntry.LockType = 3
rsDeleteEntry.Open strSQL, adoCon
rsDeleteEntry.Delete
rsDeleteEntry.Close
Set ccalls = Nothing
Set adoCon = Nothing
Response.Redirect "deleteselect.asp"
%>
Any ideals what I am doing wrong?
Thanks Tim
-----------------------------
This message is posted by http://Asp.ForumsZone.com