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!

Displaying Number of Records

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
How can i display the number of records in a table. I want to use a report to display the number of records in a customer table..for example 290 customers to date....how do i do this....Auto-number does not work because there are problems when a record is deleted....and help would be VERY much appreciated
 
You could try "Select count(*) from mytable". Alternatively, you can access the recordcount using the ADO Recordset object's recordcount property. You need to use a client-side cursor that is not forward-only in order to do this.

In your report, you should also be able to add a field with the control source property set to "=count(myfield)".
Dave Robinder, MCSD
Programmer
Colorado DataScapes
Colorado Springs, CO
(719) 328-1111
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top