Solved

Sum help

Posted on 2013-12-05
5
297 Views
Last Modified: 2013-12-05
Experts,

I have a calculated field in the control source of a report:
USD Equivalent: IIf([tblCurrencyExchange].[CurrencyID]=1,"",Format(([tblFXRates]![Amount]*[tblCurrencyExchange]![ExchangeRate]),"Currency"))


I need to sum this USD Equivalent but for each [projects].[ID]
I have an idea how to do it but something is not correct.  
I can not sum it on the report face (doesnt allow since it is calculated)...need to sum in the query design window.

thank you...let me know if you need additional info.
0
Comment
Question by:pdvsa
  • 2
  • 2
5 Comments
 
LVL 19

Accepted Solution

by:
Eric Sherman earned 500 total points
ID: 39698336
Use the Report Grouping option to Group on [projects].[id] then sum your field in the footer for the group.

ET
0
 
LVL 61

Expert Comment

by:mbizup
ID: 39698362
Try grouping your report by projects.ID.  Place a textbox in the group header or footer section, and set it's control source to:

 = Format( SUM( ABS([tblCurrencyExchange].[CurrencyID]=1) * [tblFXRates]![Amount]*[tblCurrencyExchange]![ExchangeRate]), "Currency")

Open in new window

0
 
LVL 61

Expert Comment

by:mbizup
ID: 39698369
Or possibly this, and do the formatting through the textbox properties instead of in the expression:

 = SUM( ABS([tblCurrencyExchange].[CurrencyID]=1) * [tblFXRates]![Amount]*[tblCurrencyExchange]![ExchangeRate])

Open in new window

0
 

Author Closing Comment

by:pdvsa
ID: 39698375
thanks.  It works.
0
 
LVL 19

Expert Comment

by:Eric Sherman
ID: 39698396
Glad to help and thanks for the points.

ET
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now