dmarsh16946
Technical User
I'm reporting a series of amounts using a union query like this
SELECT Area, Explorer,Companion,Date,Description,Format(HolidayAmount,'Currency') As HAmount,Format(ClubAmount,'Currency') as CAmount
FROM qryClubExpenses
UNION SELECT Area, Explorer,Companion,Date,Description,Format(HolidayAmount,'Currency') As HAmount,Format(ClubAmount,'Currency') as CAmount
FROM qryLeisureExpenses;
The Format functions show the individual data correctly as currency.
If I now try to do a simple sum of these amounts within the report groupings I get a Data Mismatch error. How can this be fixed?
SELECT Area, Explorer,Companion,Date,Description,Format(HolidayAmount,'Currency') As HAmount,Format(ClubAmount,'Currency') as CAmount
FROM qryClubExpenses
UNION SELECT Area, Explorer,Companion,Date,Description,Format(HolidayAmount,'Currency') As HAmount,Format(ClubAmount,'Currency') as CAmount
FROM qryLeisureExpenses;
The Format functions show the individual data correctly as currency.
If I now try to do a simple sum of these amounts within the report groupings I get a Data Mismatch error. How can this be fixed?