Akasha Posted January 11, 2006 Share Posted January 11, 2006 Helloi am new with asp and i have a problemI want to check the number of records in a recordsetif there aren't any in it it must give back an error that there was nothing returnedif rs2.RecordCount > 0 thenthat all works fine except for one thing and that is dat rs2.RecordCount keeps giving back -1 even when the query didn't or did return something from the database?why do I get -1 :)I look at the explanation of recordcount but didn't get any wisergreets Leandraps. excuses for my english Link to comment Share on other sites More sharing options...
Akasha Posted January 11, 2006 Author Share Posted January 11, 2006 Already found the problem. :)Recordcount is not supported with the default forward-only cursor.so i opened it in a different waysolution is found at this link:http://www.aspfaq.com/show.asp?id=2193greets leandra Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now