I have a union query that is not combining correctly. i.e. it is returning all the values from the first part followed by the results of the second. I really wanted them combined on the same row where appropriate - any ideas?
I should add that the data in qry_Sub_AO and qry_Sub_CO comes from the same (third) query so the data types are obviously the same.
Code:
SELECT Yr, Mth, CNo, Customer, AON, AOC,Null as CON,Null as COC FROM qry_Sub_AO;
UNION ALL
SELECT Yr, Mth, CNo, Customer,Null as AON,Null as AOC,CON, COC FROM qry_Sub_CO;
I should add that the data in qry_Sub_AO and qry_Sub_CO comes from the same (third) query so the data types are obviously the same.