View Full Version : HELP! Need to count records on a report


kbrooks
03-22-2002, 07:53 AM
I have a database set up tracking work accidents, etc. They have had me set up several reports showing various information, which I have pulling from various queries.

Now they are wanting a COUNT of all records on each reports. Doesn't seem that difficult but I can't figure out quite how to do it. I put =Count(*) in the report footer but it just gives me an error. I have a manual that shows how to set up a count query, but it shows no detail. I want my detailed report, only with a count at the end.

One thing all records have in common is an incident#, if that helps.

Lyn Mac
03-25-2002, 06:15 PM
Kbrooks,

In an unbound text box in the report footer try:

=Count([Incident#])

HTH,

Lyn

kbrooks
03-26-2002, 05:02 AM
I get "Error" in that area when I enter that.

http://www.access-programmers.co.uk/ubb/frown.gif Can't believe how frustrating this is, for how simple it seems!

edtab
03-30-2002, 08:46 PM
Try placing an unbound textbox in the detail section of your report. Give it a Data Control Source of =1
Set running sum Over Group
Give the text box the name "LineCount"
Set the text box visible property to "No" if you do not want to show the line numbers in your report.

In the report footer section, create another unbound text box. Set its value to:
=([LineCount]).

Let me know of this works for you.