A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Can access work with multiple FX rates?



 
 
Thread Tools Display Modes
  #1  
Old March 2nd, 2010, 04:08 PM posted to microsoft.public.access.gettingstarted
stelladimare
external usenet poster
 
Posts: 1
Default Can access work with multiple FX rates?

I have to produce a monthly report that uses employees data. The yearly
salary will be in local currency and I will need to create a query (and a
report) to divide the salary by 12 so I get the monthly gross salary and each
month I will need that monthly figure to be calculated in USD. But the FX
will change on a monthly basis (but the past months will stay the same). can
access do that if I have a table with the FX rates by market and month? Every
month I will update the FX rates and will need the monthly figures to
re-calculate. THANK YOU!
  #2  
Old March 2nd, 2010, 06:12 PM posted to microsoft.public.access.gettingstarted
KenSheridan via AccessMonster.com
external usenet poster
 
Posts: 1,610
Default Can access work with multiple FX rates?

You'll need an ExchangeRates table with columns such as LocalCurrency,
RateYear, RateMonth, USDRate. You can then include this table in your
report's underlying query, joining it on the LocalCurrency, RateYear and
RateMonth columns to whatever column or columns in the appropriate table
underlying the reports query, e.g. the JOIN might be on a TransactionDate
column in a Transactions table like so:

ON YEAR(Transactions.TransactionDate) = ExchangeRates.RateYear
AND MONTH(Transactions.TransactionDate) = ExchangeRates.RateMonth
AND Transactions.LocalCurrency = ExchangeRates.LocalCurrency

You can then return the monthly salary in USD in a computed column in the
query or a computed control in the report with:

(Employees.Salary/12) * ExchangeRates.USDRate

e.g. as of today, the monthly salary for someone earning 30,000 GBP pa would
be

(30000/12)*1.4978

which is: 3,744.50 USD

Ken Sheridan
Stafford, England

stelladimare wrote:
I have to produce a monthly report that uses employees data. The yearly
salary will be in local currency and I will need to create a query (and a
report) to divide the salary by 12 so I get the monthly gross salary and each
month I will need that monthly figure to be calculated in USD. But the FX
will change on a monthly basis (but the past months will stay the same). can
access do that if I have a table with the FX rates by market and month? Every
month I will update the FX rates and will need the monthly figures to
re-calculate. THANK YOU!


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...arted/201003/1

  #3  
Old March 2nd, 2010, 06:17 PM posted to microsoft.public.access.gettingstarted
Arvin Meyer [MVP][_2_]
external usenet poster
 
Posts: 2,310
Default Can access work with multiple FX rates?

There are 2 methods of handling history. The preferred method is to store
the elements of the historical calculation and recalculate in a query. The
other method is to store the results of the calculation and subsequently
query those. Storing the elements also allows other calculations based upon
those elements and more closely follows database relational set theory and
normalization rules.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com


"stelladimare" wrote in message
...
I have to produce a monthly report that uses employees data. The yearly
salary will be in local currency and I will need to create a query (and a
report) to divide the salary by 12 so I get the monthly gross salary and
each
month I will need that monthly figure to be calculated in USD. But the FX
will change on a monthly basis (but the past months will stay the same).
can
access do that if I have a table with the FX rates by market and month?
Every
month I will update the FX rates and will need the monthly figures to
re-calculate. THANK YOU!



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:21 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.