the Final query I am trying to make is called Q_Ytd FundRaisers By Camp. It has data comming from three sources. 1) Tbl_Fundraiser 2)Q_Count-Mini 3) Q_Count-Full
this is the SQL for it:
SELECT DivDist.Division, NewFundraiserDATAENTRY.District, NewFundraiserDATAENTRY.AcctNo, Sum(NewFundraiserDATAENTRY.OrderAmt) AS SumOfOrderAmt, NewFundraiserDATAENTRY.Camp
FROM DivDist INNER JOIN NewFundraiserDATAENTRY ON DivDist.District = NewFundraiserDATAENTRY.District
GROUP BY DivDist.Division, NewFundraiserDATAENTRY.District, NewFundraiserDATAENTRY.AcctNo, NewFundraiserDATAENTRY.Camp;
There are no relationships because I just want the straight values in one line from the sources. Now, I would like to add one more query, but it is null and screws everything up! I want to add Q_Count-Single. The Q_count-full & Mini both return values so it is ok. THis is the SQL to the Q_count-Single:
SELECT Tbl_Fundraiser.Campaign, Count(Tbl_Fundraiser.[Fund Type]) AS SngCount, Tbl_Fundraiser.[Fund Type]
FROM Tbl_Fundraiser
GROUP BY Tbl_Fundraiser.Campaign, Tbl_Fundraiser.[Fund Type]
HAVING (((Tbl_Fundraiser.Campaign)="10"

AND ((Tbl_Fundraiser.[Fund Type])="single"

);
The full & mini queries are the same thing. So I need to have the field SngCount to return a 0 if null.
Hope this is a little better explination...Thanks a lot
eric