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!

Access 97 Report custom SUM ?, please help. 1

Status
Not open for further replies.

suntsu

Programmer
Aug 26, 2001
72
Hi There,

Need help with this one, so far am lost :(

I have a report running from a crosstab query, grouping on the following fields, Customer & Year. Now what I need is to be able to make calculations within the customer footer, something like this:

=sum([InvoiceTotal]) where (([year])=1999)

and so on.

I do not want to use subreports, and must keep all the calculations in the customer footer.

again, please help :)

Best Regards,

Sun Tsu.
 
You can use DSum to accomplish this, this would be the general format:

=DSum("[InvoiceTotal]","MyQueryName","[Year]='1999' AND [CustomerID]=[CustomerID]") Joe Miller
joe.miller@flotech.net
 
Thanks again Joe,

First time around these parts and already everyone seams very helpful/friendly :)

I have never used any of the 'D' functions before (outwith Excel) I look forward to seeing it work first time.

Thanks Again,

Sun Tsu.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top