Hi all,
I really thought I had this licked, but it's operating wrong.
Right under the recordset I have this
<% IF (rs.Recordcount) <1 THEN
response.Redirect("errorpage.asp"
End If
%>
(I've also treid if (rs.Recordcount) = 0 THEN)
Now on the first page, it will goto the errorpage.asp if there are no records. on the errorpage they can select a new month/year and it will send to another identical page (but passing the querystring values along). First page works great, and I've got the code on the second page. But with the = 0 it will process like it has a record (if there are any records or not)- but the <1 will redirect to the errorpage if there is any records or not.
Any ideas?
Thank you "Damn the torpedoes, full speed ahead!"
-Adm. James Farragut
Stuart
I really thought I had this licked, but it's operating wrong.
Right under the recordset I have this
<% IF (rs.Recordcount) <1 THEN
response.Redirect("errorpage.asp"
End If
%>
(I've also treid if (rs.Recordcount) = 0 THEN)
Now on the first page, it will goto the errorpage.asp if there are no records. on the errorpage they can select a new month/year and it will send to another identical page (but passing the querystring values along). First page works great, and I've got the code on the second page. But with the = 0 it will process like it has a record (if there are any records or not)- but the <1 will redirect to the errorpage if there is any records or not.
Any ideas?
Thank you "Damn the torpedoes, full speed ahead!"
-Adm. James Farragut
Stuart