| |
jonathan52988
Posts: 34
Score: 0
Joined: 4/12/2005
From: USA
Status: offline
|
I am new to ASP and i am having an error can someone help me find it Error Too few parameters. Expected 1 My code: html> <head> <title> Delete </title> </head> <body bgcolor = "white" text = "black"> <% Dim adoCon Dim rsDeleteEntry Dim strSQL Dim IngRecordNo lngRecordNo = CLng(Request.QueryString("ID")) Set adoCon = Server.CreateObject("ADODB.Connection") adoCon.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("/jon52988/db/guestbook.mdb") Set rsDeleteEntry = Server.CreateObject("ADODB.RecordSet") strSQL = "SELECT * FROM tblComments WHERE ID_no=" & "IngRecordNo" rsDeleteEntry.LockType = 3 rsDeleteEntry.Open StrSQL, adoCon rsDeleteEntry.Delete rsDeleteEntry.Close Set rsDeleteEntry = Nothing Set adoCon = Nothing Response.Redirect "/jon52988/guestbook/delete_select.asp" %> </body> </html>
_____________________________
New To ASP
|
|