Hi All,
I was wondering if there's a way to designate which currency is shown using the formatcurrency statement. i have a table with values in, but they are representative of the currency of the account they are linked to. As a result I have £, € and $ values in there.
I'll be using a query to export each account separately, which means that if i can set formatcurrency to always give back a certain type for the entire statement that's fine. At the moment, I have a statement picking up the currency of the account and then concatenating that to the value. This works, but it gives the value in text format, so sums won't work on the excel sheet I export to.
The current SQL statement I have is below. Can anyone give some insight? Thanks.
I was wondering if there's a way to designate which currency is shown using the formatcurrency statement. i have a table with values in, but they are representative of the currency of the account they are linked to. As a result I have £, € and $ values in there.
I'll be using a query to export each account separately, which means that if i can set formatcurrency to always give back a certain type for the entire statement that's fine. At the moment, I have a statement picking up the currency of the account and then concatenating that to the value. This works, but it gives the value in text format, so sums won't work on the excel sheet I export to.
The current SQL statement I have is below. Can anyone give some insight? Thanks.
Code:
SELECT tblSuspenseTransaction.[Week No], tblSuspenseTransaction.Date, tblSuspenseTransaction.CRIS, tblSuspenseTransaction.Advisor, tblSuspenseTransaction.[Card Number], IIf([Value]>0,tblSuspenseAcc.[Account Currency] & Round([Value],2),tblSuspenseAcc.[Account Currency] & "0.00") AS [Credit Transfer], IIf([Value]<0,tblSuspenseAcc.[Account Currency] & Round([Value]*-1,2),tblSuspenseAcc.[Account Currency] & "0.00") AS [Debit Transfer], tblSuspenseTransaction.[Authorised Signature], (tblSuspenseAcc.[Account Currency] & Round(tblSuspenseTransaction.[Opening Balance],2)) AS [Acc Opening Balance], (tblSuspenseAcc.[Account Currency] & Round(tblSuspenseTransaction.[Closing Balance],2)) AS [Acc Closing Balance], tblSuspenseTransaction.Initials, tblSuspenseTransaction.Reason
FROM tblSuspenseTransaction, tblSuspenseAcc
WHERE (((tblSuspenseTransaction.ID)<>0) AND ((tblSuspenseAcc.[Account ID])=[tblSuspenseTransaction].[Account]))
ORDER BY tblSuspenseTransaction.ID DESC;