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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting the number of records on a form - Recordcount?

Status
Not open for further replies.

dafyddg

Programmer
Dec 2, 2003
92
GB
Hi,

I'm trying to get at the number of records in a form. I'm currently using the code:

records = Me.RecordSource.RecordCount

but i get the error message invalid qualifier in reference to the '.RecordSource' part of the code.

The form has its record source set by another bit of code to and SQL statment so i can't simply do a count on the record source.

Any ideas?
 
Try:

[tt]records = Me.RecordsetClone.RecordCount[/tt]

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top