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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Count records in subreport and add to main report count 1

Status
Not open for further replies.

dawnd3

Instructor
Jul 1, 2001
1,153
US
Hi there, I hope this is possible. I have a report listing people who have rsvp'd to an event. Their name is in the memberID header and in the detail section is the name of the guests that they have invited. (this is so the guest name will fall under the member who invited them.) In the report header I have a text box with:

=Count([MemberID]) & " people registered for this event."

This only counts the members but I want it to add in the guests from the subreport. Please tell me how to revise this formula.

Thanks,

Dawn

 
You can create a totals query that groups by MemberID and counts guests. Add this query to your main report's record source query and join the MemberID fields. Then add the Count of Guests to your field list. You can then sum these directly in your main report.

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top