?
Solved

Sum help

Posted on 2013-12-05
5
Medium Priority
?
330 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 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

800 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