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

How to specify criteria in a report textbox?

Status
Not open for further replies.

Simon22

Technical User
Feb 1, 2001
54
CA
Hi all,
I am building a report which displays [item_description],[item_cost], and [item_contributor_ID]. I've managed to make a textbox in the report footer which sums the [item_cost] column to give a total cost of all items that were bought. My problem is: I would like to have another textbox that lists the sum of [item_cost] by [item_contibutor] but I cannot figure out how to specify the criteria. There are only two contributors so I want a textbox for each of those two which sums their contributions. Here is a non-functioning version of what I want to do

textbox
control source: =SUM([item_cost]) where [item_contributor_id] = 1

Can anyone help?

 
Group your report by contributor and copy your existing sum control to the group footer. If you also keep the control in the report footer you will then have contributor totals and a grand total. Maq B-)
<insert witty signature here>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top