WoG
12-06-2004, 04:27 PM
How do you check to see if the query you loaded into a recordset -retuned nothing? I keep getting this error:
error '80020009' Exception occurred.
/admissions/reports/snap_rpt_TR.asp, line 61
With this code:
<%
If (result_TR_ADM(0)="") then
Response.Write ("No Data")
End if
%>
I know for sure that the result_TR_ADM recordset will not return any rows.
I want to check to see if a recordset is empty and have it bypass a whole load of code if so.
I've tried this:
<%
If (result_TR_ADM.EOF = True) then
Response.Write ("No Data")
End if
%>
And get this error:
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'EOF'
/admissions/reports/includes/TR_adm.inc, line 2
Which really confuses me... I have adovbs.asp included...
Anyone?
Edit/Delete Message
error '80020009' Exception occurred.
/admissions/reports/snap_rpt_TR.asp, line 61
With this code:
<%
If (result_TR_ADM(0)="") then
Response.Write ("No Data")
End if
%>
I know for sure that the result_TR_ADM recordset will not return any rows.
I want to check to see if a recordset is empty and have it bypass a whole load of code if so.
I've tried this:
<%
If (result_TR_ADM.EOF = True) then
Response.Write ("No Data")
End if
%>
And get this error:
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'EOF'
/admissions/reports/includes/TR_adm.inc, line 2
Which really confuses me... I have adovbs.asp included...
Anyone?
Edit/Delete Message