I have a Union Query consolidating Data from 3 tables, which then feeds a Cross Tab Query which feeds a Report:
SELECT “EncounterSalesExported” AS Operation,MYOBSellAcct AS Acct,Day,EncounterSales as Total,AccountName from EncounterSalesbyAcctNo
UNION Select
“MYOBImportedSales” AS Operation,AccountNumber AS Acct,[Date by Day] As Day,TotalMYOBSale AS Total,AccountName from MYOBSalesbyAcctNo
UNION select
“MYOBReceipts” As Operation,AccountNumber As Acct, DAte as Day,TotalReceived as Total, AccountName from MYOBReceiptsbyAcctSummary;
This works wonderfully well when there is data for each of the 3 queries. However on most occassions there will be no data for “MYOBReceipts” and the cross tab then falls over . I am happy for this item to end up as zeros if there is no data, but dont know how to accomplish this
TIA
Steve