Solved

Sum help

Posted on 2013-12-05
5
321 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

729 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