revNumberOfRecords and odbc

Creating desktop or client-server database solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
D4vidrim
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 61
Joined: Fri May 31, 2013 9:32 am

revNumberOfRecords and odbc

Post by D4vidrim » Mon Dec 23, 2013 12:15 pm

Hi,
as I read on the Dictionary, revNumberOfRecords function does not work on ODBC data sources.
Is there any alternative?

What I would like is the number of record, in order to use a progress bar to show how many records are being processed so far.

Thanks

Klaus
Posts: 14206
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: revNumberOfRecords and odbc

Post by Klaus » Mon Dec 23, 2013 1:43 pm

Hi David,

does ODBC support SQL? If yes, you can use a SQL command:
...
The COUNT(*) function returns the number of records in a table:
SELECT COUNT(*) FROM table_name
## = number of records
...

Best

Klaus

Post Reply