How to put Table Record Count on an Access Report

Hi Experts,
Thanks for your time.
I have created an access report that show the records from Table A in the report detail part of the report. On the PAge Header of the access report I also want to show the count of rows present in Table A. How do I do that? If I put a text box with the ControlSource =COUNT([Table A]![Field 1] then it gives #error when I run the report.

This may be very easy but I am not able to get it !!!!

Thanks again.
LVL 22
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

DatabaseMX (Joe Anderson - Microsoft Access MVP)Database Architect / Systems AnalystCommented:
=DCount("*", "[Table A]")


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
spattewarAuthor Commented:
Thanks. That works great!!!!

And what if I want to get the recordcount from a Query instead of a table.

I appreciate your help.
spattewarAuthor Commented:

I was able to get the count by replacing the table name with the query name. I spent so much time on this and at the end your help did it.

Thank you very much!!!

DatabaseMX (Joe Anderson - Microsoft Access MVP)Database Architect / Systems AnalystCommented:
you are welcome. Yes ... table or query name works.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.