[tt]
Here's the problem and would appreciate your help fellas.
The Link
<div align="center"><font color="#FF0000"><a href="deleterecords2.asp?id=<%=(RS("id"
.value)%>">Delete</a></font></div>
As you can see, I'm passing the <%=(RS("id"
.value)%> over to deleterecords2.asp.
The processing page
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/MYDSN.asp" -->
<%
Dim deleteme__MMColParam
deleteme__MMColParam = "1"
if (Request.QueryString("id"
<> ""
then deleteme__MMColParam = Request.QueryString("id"
%>
<%
set deleteme = Server.CreateObject("ADODB.Recordset"
deleteme.ActiveConnection = MM_MYDSN_STRING
deleteme.Source = "SELECT * FROM tblUsers WHERE id = " + Replace(deleteme__MMColParam, "'", "''"
+ ""
deleteme.CursorType = 0
deleteme.CursorLocation = 2
deleteme.LockType = 3
deleteme.Open()
deleteme_numRows = 0
%>
<%
deleteme.delete
response.redirect "results.asp"
%>
<%
deleteme.Close()
%>
The error I'm getting
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
Query-based delete failed because the row to delete could not be found.
'I have 3 records in my Access databaes with id's 10,11,12 so I know the records exists.
/USERS/deleterecords2.asp, line 20
Line 20
deleteme.delete
Thanks in advance...
Here's the problem and would appreciate your help fellas.
The Link
<div align="center"><font color="#FF0000"><a href="deleterecords2.asp?id=<%=(RS("id"
As you can see, I'm passing the <%=(RS("id"
The processing page
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/MYDSN.asp" -->
<%
Dim deleteme__MMColParam
deleteme__MMColParam = "1"
if (Request.QueryString("id"
%>
<%
set deleteme = Server.CreateObject("ADODB.Recordset"
deleteme.ActiveConnection = MM_MYDSN_STRING
deleteme.Source = "SELECT * FROM tblUsers WHERE id = " + Replace(deleteme__MMColParam, "'", "''"
deleteme.CursorType = 0
deleteme.CursorLocation = 2
deleteme.LockType = 3
deleteme.Open()
deleteme_numRows = 0
%>
<%
deleteme.delete
response.redirect "results.asp"
%>
<%
deleteme.Close()
%>
The error I'm getting
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
Query-based delete failed because the row to delete could not be found.
'I have 3 records in my Access databaes with id's 10,11,12 so I know the records exists.
/USERS/deleterecords2.asp, line 20
Line 20
deleteme.delete
Thanks in advance...
[tt]"A Successful man is one who can build a firm foundation with the bricks that others throw at him"[/tt]
![[noevil] [noevil] [noevil]](/data/assets/smilies/noevil.gif)
![[noevil] [noevil] [noevil]](/data/assets/smilies/noevil.gif)