Datagrid - return total rows

Tommahawk
04-19-2004, 09:20 AM
Hi,
I am using a datagrid first-time and simply want to return the number of total records. Its only one column and I want to get a row count.

something like statusbar.simpletext = Their are 200 records in this datagrid.

Any help appreciated.
Thanks.

loquin
04-19-2004, 09:57 AM
Hi,
I am using a datagrid first-time and simply want to return the number of total records. Its only one column and I want to get a row count.

something like statusbar.simpletext = Their are 200 records in this datagrid.

Any help appreciated.
Thanks.
You should refer to the underlying recordset for the field count.

If you are using Access as the database, just refer to recordsourcename.recordset.recordcount

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum