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

Total fields for a changeable number of records

Status
Not open for further replies.

Geekette

MIS
Jun 5, 1999
27
0
0
US
I am designing a report which will count the number of sales a salesperson makes over a period of time. The report currently breaks with headers and footers on salesdate and salesperson, with total fields in the footers.
example:
="Total for Salesperson " & [saleslname] & " (" & Count(*) & " " & IIf(Count(*)=1," sale","sales") & ")"
="Total for " & [salesdate] & " (" & Count(*) & " " & IIf(Count(*)=1," sale","sales") & ")"


I would like to have in the report footer not only the grand total for all sales, but also the grand total for each salesperson.
example:
Grand Total for Salesperson Jones = 60 sales
Grand Total for Salesperson Smith = 82 sales
Grand Total = 142 sales


My problem is that for any given reporting period, the number of salespersons varies. Salespersons are identified by saleslname, salesfname and salesID#
Any suggestions?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top