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

Summary Count for Specific Text Box Data in a Report

Status
Not open for further replies.

floydpepper

Technical User
Jul 8, 2004
39
US
Ladies and Gents,
I have a report that lists:
Event, Outcome 1, Outcome 2

I have several different events that I log, such as "accept" and "return". Is there a way to have the total count of each event type (eg return = 7 total, accept = 8 total) in the footer of this report? I appreciate your help.

FloydP
 
Floyd Pepper

THere are a few ways, but unless you have some additional requirements, perhaps the easiest way will be to add a subreport. Add a list box and set its rowsource to a query similiar to what follows.

SELECT YourTable.Event(YourTable.ID) AS CountOfID
FROM YourTable
GROUP BY YourTable.Event;

Cheers
Bill
 
Another way have the control source of your text box
=Sum(IIf([outcome1]="Return",1,0)) and so on
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top