I am working in a database with information about courses and I created a query to know how many courses each vendor sold per month. This is the query:
SELECT DISTINCTROW tblStudentCourses.SalesID, Format$([tblStudentCourses].[SignDate],'mmmm yyyy') AS [SignDate By Month], Sum(tblStudentCourses.Fee) AS [Sum Of Fee], Avg(tblStudentCourses.Fee) AS [Avg Of Fee], Count(*) AS [Count Of tblStudentCourses]
FROM tblStudentCourses
GROUP BY tblStudentCourses.SalesID, Format$([tblStudentCourses].[SignDate],'mmmm yyyy'), Year([tblStudentCourses].[SignDate])*12+DatePart('m',[tblStudentCourses].[SignDate])-1;
It worked without problems until today when it throws me syntax error with this part Format $ ([tblStudentCourses]. [SignDate], 'mmmm yyyy' I have not changed any parameter or relation in the table .
Could someone tell me why it stopped working and how to fix it?
Thanks:)