Phip
09-05-2002, 11:18 PM
I can't figure this out it deletes like it should but i still get an error.
<%
Dim adoCon
Dim strSQL
Dim rsDelete
Dim intIdNum
Dim rsCheck
intIdNum = Request.QueryString("id")
Set adoCon = Server.CreateObject("ADODB.Connection")
adoCon.Open "DSN=newsAccess"
strSQL = "DELETE FROM newspost WHERE id IN(" & intIdNum & ")"
Set rsCheck = Server.CreateObject("ADODB.Recordset")
Set rsDelete = adoCon.Execute(strSQL)
rsDelete.Close
adoCon = Nothing
%>
<%
Dim adoCon
Dim strSQL
Dim rsDelete
Dim intIdNum
Dim rsCheck
intIdNum = Request.QueryString("id")
Set adoCon = Server.CreateObject("ADODB.Connection")
adoCon.Open "DSN=newsAccess"
strSQL = "DELETE FROM newspost WHERE id IN(" & intIdNum & ")"
Set rsCheck = Server.CreateObject("ADODB.Recordset")
Set rsDelete = adoCon.Execute(strSQL)
rsDelete.Close
adoCon = Nothing
%>