I just don't understand access sql, it is much different from mssql or mysql. This should be straight forward, but it doesn't work:
Trx Date is Date/Time. The error I get is:
You tried to execute a query that does not include the specified expression map.code="600.03" and month([Trx Date])=5 and year([Trx Date])=2009 as part of an aggregate function. (Error 3122)
This is much harder than other sql
Code:
SELECT map.code, Sum([Debit Amount]-[Credit Amount])
FROM map left join data on map.code=data.code
GROUP BY map.code
HAVING map.code="600.03" and month([Trx Date])=5 and year([Trx Date])=2009;
Trx Date is Date/Time. The error I get is:
You tried to execute a query that does not include the specified expression map.code="600.03" and month([Trx Date])=5 and year([Trx Date])=2009 as part of an aggregate function. (Error 3122)
This is much harder than other sql