SQL_CALC_FOUND_ROWS using ODBC driver

Nuno Oliveira <[email protected]>
Newsgroups gmane.comp.db.mysql.odbc,gmane.comp.db.mysql.general
Message-ID <[email protected]>
Hi,

I've used PHP with MySQL and I was able to count the rows of a table by 
using the following code:

SELECT SQL_CALC_FOUND_ROWS * FROM MyTableName;
SELECT FOUND_ROWS();

However, I would like to do the same thing using Visual Basic 6...

When I set the RS.Source to the first SELECT statement and open it, it 
run OK but I need to close the RS and open it again using the second 
SELECT statement.

After any of this operations I get a Recordset->RecordsCount = 1

How can I work this out?

Thanks

-- 
MySQL ODBC Mailing List
For list archives: http://lists.mysql.com/myodbc
To unsubscribe:    http://lists.mysql.com/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.