So basically, there are two important fields: [SumOfNet Amount] and [Accrual Amount]. They are both data type 'number,' field size 'double.' I want to subtract one from the other, and I want the data type for the result to be 'currency.'
Here's how I'm trying to do it:
SELECT [joint estimates with exclusions].*, Format([SumOfNet Amount]-[Accrual Amount],"Currency") AS [Revenue Loss]
FROM [joint estimates with exclusions] RIGHT JOIN [problem-campaign-only] ON [joint estimates with exclusions].[Capture ID] = [problem-campaign-only].[Capture ID]
WHERE (((Format([SumOfNet Amount]-[Accrual Amount],"Currency"))>0));
But this results in a data type mismatch. What am I doing wrong?
Here's how I'm trying to do it:
SELECT [joint estimates with exclusions].*, Format([SumOfNet Amount]-[Accrual Amount],"Currency") AS [Revenue Loss]
FROM [joint estimates with exclusions] RIGHT JOIN [problem-campaign-only] ON [joint estimates with exclusions].[Capture ID] = [problem-campaign-only].[Capture ID]
WHERE (((Format([SumOfNet Amount]-[Accrual Amount],"Currency"))>0));
But this results in a data type mismatch. What am I doing wrong?