salamander
Registered User.
- Local time
- Yesterday, 21:50
- Joined
- Mar 3, 2008
- Messages
- 18
Hi there,
I have a report which shows certain costs if they meet a certain criteria.
So I have the following layour (for simplicity I will omit the other headers as they have no impact whatsoever on my question)
Ref - Total Costs
Blah - £100
BlahBlah - $200*
In the query
Total Costs is evaluated using an expression multiplying the working days between 2 dates and multiplying by a daily cost - this works fine.
In the report
Each row in the original table has a field Currency. This is linked to another table which has the potential currencies and relevant rate. Since this is UK based, exchange rate for £ is obviously 1 and $ is whatever it is on that day. We then divide the total cost by the exchange rate. We also have another field called "Note" (this will make sense in a minute). This contains * for $. So each row in the report looks like:
="£" & Round([FeesAtRisk]/[ExchangeRate],2) & [Note]
I then want to put a note at the bottom (see the reason for note now) which says "* - Converted at exchange rate of £1 = $" & [ExchangeRate] ".".
This of course will not take out the $ always, nor will hide it if no dollar values exist. (ie no need to have a *)
How does one A) display this info conditional on a $ value existing and B) showing the relevant exchange rate?
I am thinking of doing a bit of VBA and SQL (ie using a select on the query to see if we return any results where we have currency = $, if yes then make the label visible and display the rate, if no then don't show it)
Thoughts?
Thanks
I have a report which shows certain costs if they meet a certain criteria.
So I have the following layour (for simplicity I will omit the other headers as they have no impact whatsoever on my question)
Ref - Total Costs
Blah - £100
BlahBlah - $200*
In the query
Total Costs is evaluated using an expression multiplying the working days between 2 dates and multiplying by a daily cost - this works fine.
In the report
Each row in the original table has a field Currency. This is linked to another table which has the potential currencies and relevant rate. Since this is UK based, exchange rate for £ is obviously 1 and $ is whatever it is on that day. We then divide the total cost by the exchange rate. We also have another field called "Note" (this will make sense in a minute). This contains * for $. So each row in the report looks like:
="£" & Round([FeesAtRisk]/[ExchangeRate],2) & [Note]
I then want to put a note at the bottom (see the reason for note now) which says "* - Converted at exchange rate of £1 = $" & [ExchangeRate] ".".
This of course will not take out the $ always, nor will hide it if no dollar values exist. (ie no need to have a *)
How does one A) display this info conditional on a $ value existing and B) showing the relevant exchange rate?
I am thinking of doing a bit of VBA and SQL (ie using a select on the query to see if we return any results where we have currency = $, if yes then make the label visible and display the rate, if no then don't show it)
Thoughts?
Thanks