Aleks
asked on
Show region if recordset is empty or if its not empty and value = 1
I have a region that I need to show if a recordset is empty OR if the recordset is not empty AND the value of the field = 1
This is the code I currently have to show it if the value = 1 I just need to add code to show it where that is the case OR if the recordset is empty
I need to add if 'rs_qnrpages' is empty OR the above then show that region.
I am using ASP classic
This is the code I currently have to show it if the value = 1 I just need to add code to show it where that is the case OR if the recordset is empty
<% If rs_qnrpages.Fields.Item("pg_02_addresses").Value = (1) Then 'script %>
MY REGION
<% End If %>
I need to add if 'rs_qnrpages' is empty OR the above then show that region.
I am using ASP classic
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This seems to have worked and its easier.
Open in new window
Also, instead of using RecordCount, you could check if your recordset is at end of file (.EOF).