B
bertusavius via AccessMonster.com
I'm trying to create a frequency distribution on a large database containing
times.
The distribition itself works quite well, but there is one problem; when the
are no time-instances within a certain category, the caterogy is not included
within the query.
I tried a JOIN using a helper table containing all time-categories
('hulptijden'). But it simply doesn't work. What am I doing wrong here?
SELECT groeptabel.tijdsvlak, Count([2009].Id) AS AantalVanId, [2009].Datum,
hulptijden.hulpTijdsvlakken
FROM 2009, hulptijden LEFT JOIN groeptabel ON hulptijden.hulpTijdsvlakken =
groeptabel.tijdsvlak
WHERE ((([2009].RIT_TIJD_2) Between [start] And [einde]))
GROUP BY groeptabel.tijdsvlak, [2009].Datum, groeptabel.Id, hulptijden.
hulpTijdsvlakken
HAVING ((([2009].Datum)=#1/8/2009#))
ORDER BY groeptabel.tijdsvlak;
I hope the code is clear (category descriptions in Dutch)
times.
The distribition itself works quite well, but there is one problem; when the
are no time-instances within a certain category, the caterogy is not included
within the query.
I tried a JOIN using a helper table containing all time-categories
('hulptijden'). But it simply doesn't work. What am I doing wrong here?
SELECT groeptabel.tijdsvlak, Count([2009].Id) AS AantalVanId, [2009].Datum,
hulptijden.hulpTijdsvlakken
FROM 2009, hulptijden LEFT JOIN groeptabel ON hulptijden.hulpTijdsvlakken =
groeptabel.tijdsvlak
WHERE ((([2009].RIT_TIJD_2) Between [start] And [einde]))
GROUP BY groeptabel.tijdsvlak, [2009].Datum, groeptabel.Id, hulptijden.
hulpTijdsvlakken
HAVING ((([2009].Datum)=#1/8/2009#))
ORDER BY groeptabel.tijdsvlak;
I hope the code is clear (category descriptions in Dutch)