I have an error which appears when i run my code, i have had a look at it and i dont know whats wrong, so any help would be gladly appreciated
Many Thanks
Vicky
strSQL = "SELECT Count([Complaints Table].Counter) AS CountOfCounter, [Complaints Table].[Type of Complaint], Format([Date],""mm""
) AS Month " & _
" FROM [Complaints Table]" & _
" WHERE ((([Complaints Table].Date) Between '#[Forms]![Print Request between dates]![sdate]#'" & _
" And '#[Forms]![Print Request between dates]![edate]#')" & _
" AND (([Complaints Table].[Attributable to Company])=""epco""
)" & _
" GROUP BY [Complaints Table].[Type of Complaint], Format([Date],""mm""
)" & _
" ORDER BY [Complaints Table].[Type of Complaint], Month;"
Many Thanks
Vicky
strSQL = "SELECT Count([Complaints Table].Counter) AS CountOfCounter, [Complaints Table].[Type of Complaint], Format([Date],""mm""
" FROM [Complaints Table]" & _
" WHERE ((([Complaints Table].Date) Between '#[Forms]![Print Request between dates]![sdate]#'" & _
" And '#[Forms]![Print Request between dates]![edate]#')" & _
" AND (([Complaints Table].[Attributable to Company])=""epco""
" GROUP BY [Complaints Table].[Type of Complaint], Format([Date],""mm""
" ORDER BY [Complaints Table].[Type of Complaint], Month;"