MySQL Forums
Forum List  »  Microsoft Access

Recordcount Problem
Posted by: Andrew Newton
Date: April 06, 2009 10:57AM

Hi

I have the following recordset query on my web site.

sql="SELECT * FROM tblNewsletterInfo WHERE NEWSLETTER_NUMERO=" & request("news") & " ORDER BY INFO_TRI, INFO_NUMERO"
set rs=server.createObject("adodb.recordset")
rs.open sql, conn, 3, 3
response.write(rs.recordcount)

When I connect to the Access db I get the correct recordcount.

However, when I change the connection to the Mysql db (that is identical to the access db) I get a recordcount of -1.

Does any one know why?

Thanks in advance.

Andrew

Options: ReplyQuote


Subject
Views
Written By
Posted
Recordcount Problem
4480
April 06, 2009 10:57AM
2767
April 06, 2009 11:25AM
3051
April 06, 2009 11:33AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.