which shows how many categories she has on each day, but i need this to say 0 for the categories she hasnt had any of.!!
OK, we'll try something different
first, create an Cartesian query (no joins) - call it Qall
Code:
SELECT *
FROM tblDates, tblCategories
this will show all categories for all dates
now create a second query to show what has actually been served on each day - call it Qactual
Code:
SELECT linkdatemeal.dateID, linkCatMeal.*
FROM linkdatemeal INNER JOIN linkCatMeal
now create a third query to link these two queries together
Code:
SELECT Qall.recdate, Qall.catname, sum (nz(Qactual.serves,0)) as servings
FROM Qall LEFT JOIN Qactual ON Qall.DateID=Aactual.dateID and Qall.catID=Aactual.catID
GROUP BY Qall.recdate, Qall.catname
The above is freetyped so may contain typos, but give it a try.