SELECT tblEvent.startDate,
tblEvent.EventName,
lookupTable.Desc,
lookupTable_1.Desc,
lookupTable_1.Group,
Count(lookupTable_1.Desc) AS CountOfDesc
FROM (tblEvent INNER JOIN
(lookupTable INNER JOIN tblEventFormat
ON lookupTable.luID = tblEventFormat.ActivityID)
ON tblEvent.EventID = tblEventFormat.EventID)
INNER JOIN (tblEventTracking
INNER JOIN lookupTable AS lookupTable_1
ON tblEventTracking.tdescription = lookupTable_1.luID)
ON tblEvent.EventID = tblEventTracking.EventID
GROUP BY tblEvent.startDate,
tblEvent.EventName,
lookupTable.Desc,
lookupTable_1.Desc,
lookupTable_1.Group
HAVING (((tblEvent.startDate)>=[Forms]![frmScreeningEventDateParm]![BegDate] And (tblEvent.startDate)<=[Forms]![frmScreeningEventDateParm]![EndDate]) AND
((lookupTable.Desc)="Screening Event" Or (lookupTable.Desc)="Health Fair/Screenings") AND
((lookupTable_1.Group)="Cancer"))
ORDER BY tblEvent.startDate;