Guest_imported
New member
- Jan 1, 1970
- 0
I have a program the runs a query on a Microsoft Access database. If someone were to type in a value on the previous page, and that value is not found in the table, it brings up "This page cannot be displayed".
HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services
Error Type:
ADODB.Field (0x800A0BCD)
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
I believe its because the value was not found and it reached the eof. How could I display a message on the page stated no records were found instead of having it go to the error page. My eof loop looks like this:
<% 'Loop through the recordset to make each entry in the list.
Do While Not rstSearch.EOF
%>
<tr>
<td><%= rstSearch.Fields("PRP_ADDR"
.Value %></td>
<td><b><%= rstSearch.Fields("PLACE"
.Value %></b> - Located at: <%= rstSearch.Fields("PREC_ADDR"
.Value %>.</td>
</tr>
<%
rstSearch.MoveNext
Loop
%>
Thanks!
HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services
Error Type:
ADODB.Field (0x800A0BCD)
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
I believe its because the value was not found and it reached the eof. How could I display a message on the page stated no records were found instead of having it go to the error page. My eof loop looks like this:
<% 'Loop through the recordset to make each entry in the list.
Do While Not rstSearch.EOF
%>
<tr>
<td><%= rstSearch.Fields("PRP_ADDR"
<td><b><%= rstSearch.Fields("PLACE"
</tr>
<%
rstSearch.MoveNext
Loop
%>
Thanks!