Hello,
I have a query as follows:
I created it in the design grid and it works fine until I add the criteria as described after "HAVING" in the SQL statement (the query will be the source of a subreport linked by the field [tblACF.Establishment] in the main report). It then gives me an invalid bracketing error.
Any help would be greatly appreciated.
David
I have a query as follows:
Code:
SELECT qryRegMonFigsByEstabWorkshop.EstabCode, qryRegMonFigsByEstabWorkshop.Industry, Sum(qryRegMonFigsByEstabWorkshop.PlannedP2PlacesPred) AS SumOfPlannedP2PlacesPred, Sum(qryRegMonFigsByEstabWorkshop.AvgOfP2sActual) AS SumOfAvgOfP2sActual, Sum(qryRegMonFigsByEstabWorkshop.AvgOfAttendanceActual) AS SumOfAvgOfAttendanceActual
FROM qryRegMonFigsByEstabWorkshop
GROUP BY qryRegMonFigsByEstabWorkshop.EstabCode, qryRegMonFigsByEstabWorkshop.Industry
HAVING (((qryRegMonFigsByEstabWorkshop.EstabCode)=[Reports]![rptYasmine3]![tblACF.Establishment]));
Any help would be greatly appreciated.
David