dawilis
09-01-2002, 11:53 AM
If my query has returns no records in the database how can I redirect the page to another page
I have tried this
<%
If RSVoucher.Fields.Item("id").Value = 0 Then
response.redirect"novoucher.asp"
End if
%>
but I get this error
Error Type:
ADODB.Field (0x800A0BCD)
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
/class/showvoucher.asp, line 96
I have tried this
<%
If RSVoucher.Fields.Item("id").Value = 0 Then
response.redirect"novoucher.asp"
End if
%>
but I get this error
Error Type:
ADODB.Field (0x800A0BCD)
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
/class/showvoucher.asp, line 96