Hey all,
I am making a search function for a website I am designing. I have followed the instructions per the tutorial in Dreamweaver MX but am still receiving an error message on the results page. Here are the details:
1.) Search Form Details:
...form action="search_results.asp" method="get" name="fNAME" id="fNAME">
<input type="text" name="textfield">
<input name="search" type="submit" id="search" value="search">
...
2.) Error Message: ADODB.Field error '800a0bcd'
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
/car/TMPc72c6cxxjk.asp, line 29
Line 29 Says: ...td bgcolor="#000000"> <font color="#FFFFFF" size="1" face="Verdana"><%=(rsSPO.Fields.Item("fNAME"
.Value)%></font>...
3.) Search Results Page Detail
FORM/RECORDSET INFO:
<!--#include file="Connections/SPO.asp" -->
<%
var rsSPO__MMColParam = "1";
if (String(Request.Form("fNAME"
) != "undefined" &&
String(Request.Form("fNAME"
) != ""
{
rsSPO__MMColParam = String(Request.Form("fNAME"
);
}
%>
<%
var rsSPO = Server.CreateObject("ADODB.Recordset"
;
rsSPO.ActiveConnection = MM_SPO_STRING;
rsSPO.Source = "SELECT * FROM SPO_DATABASE WHERE fNAME = '"+ rsSPO__MMColParam.replace(/'/g, "''"
+ "' ORDER BY fNAME ASC";
rsSPO.CursorType = 0;
rsSPO.CursorLocation = 2;
rsSPO.LockType = 1;
rsSPO.Open();
var rsSPO_numRows = 0;
%>
CONNECTION INFO:
Name: rsSPO
Connection: SPO
SQL: SELECT *
FROM SPO_DATABASE
WHERE fNAME = 'MMColParam'
ORDER BY fNAME ASC
VARIABLES: MMColParam 1 Request.Form("fNAME"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
I know the record exists. The search works during the insertion of the recordset using the test button, just not on the results page. Any help would be great.
Thanks,
Rami RRD
I am making a search function for a website I am designing. I have followed the instructions per the tutorial in Dreamweaver MX but am still receiving an error message on the results page. Here are the details:
1.) Search Form Details:
...form action="search_results.asp" method="get" name="fNAME" id="fNAME">
<input type="text" name="textfield">
<input name="search" type="submit" id="search" value="search">
...
2.) Error Message: ADODB.Field error '800a0bcd'
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
/car/TMPc72c6cxxjk.asp, line 29
Line 29 Says: ...td bgcolor="#000000"> <font color="#FFFFFF" size="1" face="Verdana"><%=(rsSPO.Fields.Item("fNAME"
3.) Search Results Page Detail
FORM/RECORDSET INFO:
<!--#include file="Connections/SPO.asp" -->
<%
var rsSPO__MMColParam = "1";
if (String(Request.Form("fNAME"
String(Request.Form("fNAME"
rsSPO__MMColParam = String(Request.Form("fNAME"
}
%>
<%
var rsSPO = Server.CreateObject("ADODB.Recordset"
rsSPO.ActiveConnection = MM_SPO_STRING;
rsSPO.Source = "SELECT * FROM SPO_DATABASE WHERE fNAME = '"+ rsSPO__MMColParam.replace(/'/g, "''"
rsSPO.CursorType = 0;
rsSPO.CursorLocation = 2;
rsSPO.LockType = 1;
rsSPO.Open();
var rsSPO_numRows = 0;
%>
CONNECTION INFO:
Name: rsSPO
Connection: SPO
SQL: SELECT *
FROM SPO_DATABASE
WHERE fNAME = 'MMColParam'
ORDER BY fNAME ASC
VARIABLES: MMColParam 1 Request.Form("fNAME"
I know the record exists. The search works during the insertion of the recordset using the test button, just not on the results page. Any help would be great.
Thanks,
Rami RRD