Count total number of groups in report

K

Komita

I've had not trouble getting the correct groups showing on my report.

However, at the end of the entire report, I want to put a total number of
the groups (not records in the groups) that were established in the report.

The searches I've found on this direct me to counting records, not groups.

Thanks for any help, Lauri
 
G

Gina Whipp

Komita,

Something like...

SELECT Count([WhateverYouAreGroupingOn]) From YourRecordSource GROUP BY
[WhateverYouAreGroupingOn]

OR

- Create a new text box in either the Group Header or Group Footer.
- Name it GroupCount
- Set the Control Source to =1
- Set the Visible Property to No
- Set the Running Sum property to Over All
- Create a text box in the Report Footer
- Set the Control Source to =[GroupCount]



--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm
 
M

Marshall Barton

Komita said:
I've had not trouble getting the correct groups showing on my report.

However, at the end of the entire report, I want to put a total number of
the groups (not records in the groups) that were established in the report.

The searches I've found on this direct me to counting records, not groups.


Add a text box (named txtGrpCnt) to the group header or
footer section. Set its control source to =1 and RunningSum
property to Over All.

Then the report footer text box can use the expression
=txtGrpCnt
 
K

Komita

thank you both that answered. i had done everything except was trying to use
=count in the report footer instead of just =thegroupname

thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top