Error message
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E23)
Row handle referred to a deleted row or a row marked for deletion.
/paneldatatest/indiana/fdp/deletepaneldefa ult.asp, line 56
Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)
Page:
POST 39 bytes to /paneldatatest/indiana/fdp/deletepaneldefa ult.asp
POST Data:
loc=1099&rem=00 9&bay=fdp009&ms =04&ps=24
This is the code I have so far.
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E23)
Row handle referred to a deleted row or a row marked for deletion.
/paneldatatest/indiana/fdp/deletepaneldefa ult.asp, line 56
Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)
Page:
POST 39 bytes to /paneldatatest/indiana/fdp/deletepaneldefa ult.asp
POST Data:
loc=1099&rem=00 9&bay=fdp009&ms =04&ps=24
This is the code I have so far.
Code:
<% @language="vbscript" %>
<% Response.buffer = true %>
<html>
<head>
<title>NE&P Panel Data</title>
</head>
<body background="\..\background.jpg">
<%
'************************************************************
'ADO is the keyword for google searches on help with DB stuff
'************************************************************
locvar = Request.QueryString("loc")
locCount = 1
Set MyConn = Server.CreateObject("ADODB.Connection") ' Establish the connection object
MyConn.Open ("Driver={Microsoft Access Driver (*.mdb)};Dbq=C:\Inetpub\wwwroot\paneldatatest\databases\FDPIN.mdb;Uid=;Pwd=niemtel;")
Set rsDeleteComments = Server.CreateObject("ADODB.Recordset")
strSQL = "SELECT panel.PlantLoc, panel.panelconnection, panel.panelPosition FROM Panel;" 'Set up a SQL command in a string variable
rsDeleteComments.CursorType = 2
rsDeleteComments.LockType = 3
rsDeleteComments.Open strSQL, MyConn
locBay = Request.Form("bay")
locBay = Ucase(locBay)
locvar = Request.Form ("loc") & Request.Form("rem") & locBay & "MS" & Request.Form("ms") & "-0" & locCount
locSize = Request.Form("ps")
locSize = Cint(locSize)
do Until locCount > locSize
'if not rsDeleteComments.duplicate then
' do while not rsAddComments.duplicate
rsDeleteComments.Delete
rsDeleteComments.Fields("PlantLoc")= locvar
'rsDeleteComments.Fields("panelconnection")= Request.Form("ps") & " " & Request.Form("ct")
'rsDeleteComments.Fields("panelPosition")=locCount
' rsDeleteComments.movenext
' loop
'else
' response.write "<h1> ERROR - Panel does not exist </h1>"
'end if
rsDeleteComments.Update
locCount = (locCount + 1)
if locCount < 10 then
locvar = Request.Form ("loc") & Request.Form("rem") & locBay & "MS" & Request.Form("ms") & "-0" & locCount
else
locvar = Request.Form ("loc") & Request.Form("rem") & locBay & "MS" & Request.Form("ms") & "-" & locCount
end if
loop
rsDeleteComments.Close
Set rsDeleteComments = Nothing
MyConn.close ' close the database connection
%>
Comment