I am running the following sql statement in my code by I keep getting an error telling me that this is not a valid sql statement, however when I run a query using the statement it is fine.
DoCmd.RunSQL ("SELECT Count([Master].[Name]) FROM [Master] GROUP BY [Master].[PLACE], [Master].TDATE HAVING ((([Master].[PLACE])=[Forms]![board].[Form]![cmbo_place]) AND (([ABC Master].TDATE)=[Forms]![board].[Form]![cmbo_tdate]));")
DoCmd.RunSQL ("SELECT Count([Master].[Name]) FROM [Master] GROUP BY [Master].[PLACE], [Master].TDATE HAVING ((([Master].[PLACE])=[Forms]![board].[Form]![cmbo_place]) AND (([ABC Master].TDATE)=[Forms]![board].[Form]![cmbo_tdate]));")