I have a tblAmount with various dollar amounts and another tblRanges with beginning and ending dollar ranges. The query is supposed to look at each amount in tblAmount and throw the amt into the proper dollar range from tblRanges. The query gives totals by dollar range. The problem is when a range has no activity, instead of making a row with zero's, the row is just omitted. I want to still see the range even if there were no items in the row. I've been told it isn't possible to do without adding another query which I don't want to do. Is this correct? Here is the query.
SELECT tblStrataRangeAll.ID, [Begin] & " To " & [End] AS Range, Count(tblAmount.ID) AS Records, Val(Nz(Sum([Amt]),0)) AS Dollars, tblStrataRangeAll.Diff
FROM tblAmount, tblStrataRangeAll
WHERE (((Abs([Amt])) Between [Begin] And [End]))
GROUP BY tblStrataRangeAll.ID, [Begin] & " To " & [End], tblStrataRangeAll.Diff, tblStrataRangeAll.Begin
HAVING (((Sum(tblAmount.Amt))<>False))
ORDER BY tblStrataRangeAll.ID;
SELECT tblStrataRangeAll.ID, [Begin] & " To " & [End] AS Range, Count(tblAmount.ID) AS Records, Val(Nz(Sum([Amt]),0)) AS Dollars, tblStrataRangeAll.Diff
FROM tblAmount, tblStrataRangeAll
WHERE (((Abs([Amt])) Between [Begin] And [End]))
GROUP BY tblStrataRangeAll.ID, [Begin] & " To " & [End], tblStrataRangeAll.Diff, tblStrataRangeAll.Begin
HAVING (((Sum(tblAmount.Amt))<>False))
ORDER BY tblStrataRangeAll.ID;