Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retiving the number of rows using VBA

Status
Not open for further replies.

dizzy880

Programmer
Aug 9, 2001
7
AU
Can anyone help, I need to able to retrive the number of rows from a report using VBA

thanks
 
Dizzy,
There's really two ways to go about this. If you simply need to return the number of rows in a report on a report tab, insert a cell and add a variable using the function:
=NumberOfRows("DataProviderName")

To access via VBA, the appropriate syntax is to define it:
NbRowsFetched As Long

...and use this syntax:
DataProviderName.NbRowsFetched

All of this information is available in the SDK.

Hope it helps.
V
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top