View Full Version : Count Total records in db


Hayley Baxter
03-22-2002, 07:52 AM
I want to count the total number of records I have stored on the db by using a text box and using the count function but I have not had any luck. I have tried =Count(*) and =Count([IDNo(*)) What is the correct syntax for this? All I seem to get is #error returned in the report

Many thanks

Capilano
03-22-2002, 09:41 AM
Try =Count([IDNo]) in the Control Source of your Text Box. Make certain to place the Text Box in the Report Footer of your Report. Also, this will only count the number of records that are contained in the Report's Record Source so be sure that the Record Source is accurate.

Good Luck

Pat

Pat Hartman
03-22-2002, 12:30 PM
Do it with a query:

Select Count(*)
From YourTable;