Hello all, hope someone can help.
I recently built a report showing the distribution of money in and out
of the company. Simplified version of which looks like:
DECEMBER 2004
TELEPHONE SALES: INTERNET: TOTAL:
£1200 £1000 £2200
I then built a sub-report showing adjustments, eg:
ADJUSTMENTS
TELEPHONE SALES: INTERNET: TOTAL:
Refund#1 £12 £1 £13
Refund#2 £2 £10 £12
Finally I created an overall totals for each column using the DSUM
function. Everything worked great. The sub-report is based on a UNION
query, and I realised that this was removing duplicates records, when
obviously in this context they should remain. I therefore changed the
underlying query to a UNION ALL query. This fixed the query in the
respect that it now returns all of the necessary records, however in
the report fields that reference the query using DSUM, the result
returned is '#Error'. I cannot see why this would be. What have I
done wrong? Or is it a bug? Any guidance greatly appreciated.