Hi, I recently learnt of the UNION query but am now having some difficulty implementing it to do exactly what I want! Currently the below works, but only when I take 'Query 4' out of the equation - because Query 4 holds some '#Error' and '0' values (which is fine! It does so because of the calculations within the sheet which are trying to divide by 0 because of the data in the table - this may change hense why i'm still keeping the query).
How can I make a Union query show me the fields whether they have values or not? I'm presuming it wont work because of the 'error' value...
Code:
SELECT
[SANName],[AggregateName], [DailyIncreaseGB], [TimeLeft], [UsedPercentage]
FROM [Query1];
UNION SELECT [SANName],[AggregateName], [DailyIncreaseGB], [TimeLeft], [UsedPercentage]
FROM [Query2];
UNION SELECT [SANName],[AggregateName], [DailyIncreaseGB], [TimeLeft], [UsedPercentage]
FROM [Query3];
UNION SELECT [SANName],[AggregateName], [DailyIncreaseGB], [TimeLeft], [UsedPercentage]
FROM [Query4];