Page 1 of 1

Number of Rows in a Database Table

Posted: Fri Aug 14, 2009 1:22 pm
by ClueLess
How can I get the number of rows in a MSAccess database table (or 0 if table is empty) using the natibe PB database functions?

Thanks

Posted: Fri Aug 14, 2009 1:26 pm
by myutopia
You can't. You have the use the native MSAccess database SELECT command to return that value.

For example, in SQLite, it is "SELECT COUNT(*) FROM table;". The result is then retrieved by GetDatabaseLong() or GetDatabaseString(). I don't know MSAccess, so you're gonna have to do some research there. Sorry :(

Posted: Fri Aug 14, 2009 1:43 pm
by ClueLess
Thanks