I have the following query:
For the Month of January It produces:
Month Work Out Location Distinct Visits
1 Loc1 1
1 Loc1 1
1 Loc2 1
1 Loc2 1
1 Loc2 1
1 Loc3 1
I would like it to produce:
Month Work Out Location Distinct Visits
1 Loc1 2
1 Loc2 3
1 Loc3 1
I can't figure it out, - any help is appreciated, thank you!
Code:
SELECT Month([WOD]) AS [Month], qryFCVisitsPID.WOLoc AS WorkOutLocation, Count(*) AS [Distinct Visits]
FROM qryFCVisitsPID
WHERE (qryFCVisitsPID.WOD) Between Forms![fdlgOps]![txtStart] AND Forms![fdlgOps]![txtEnd]
GROUP BY Month([WOD]), qryFCVisitsPID.WOLoc, qryFCVisitsPID.WOD;
For the Month of January It produces:
Month Work Out Location Distinct Visits
1 Loc1 1
1 Loc1 1
1 Loc2 1
1 Loc2 1
1 Loc2 1
1 Loc3 1
I would like it to produce:
Month Work Out Location Distinct Visits
1 Loc1 2
1 Loc2 3
1 Loc3 1
I can't figure it out, - any help is appreciated, thank you!