Home |
Search |
Today's Posts |
#5
![]() |
|||
|
|||
![]()
Regarding:
SELECT FORMAT(Date Started,`YYYYMM') AS 'YrMth', Count(*) AS 'PCount' FROM `C:\MIS\MISDATA`.tblStudents Group by Format(tblStudents.`Date Started`,'YYYYMM') I suspect the problem may be inconsistent use of accent grave marks (`) and apostrophes (') in the SQL code. NOTE: Apostrophes are ASCII code 039. The accent grave marks are ASCII code 096. You must use the accent grave marks around the file path, but I believe you use apostrophes everywhere else. So...I thnk your SQL code should be: SELECT FORMAT('Date Started','YYYYMM') AS 'YrMth', Count(*) AS 'PCount' FROM `C:\MIS\MISDATA`.tblStudents Group by Format('Date Started','YYYYMM') Does that help? -- Regards, Ron |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
External Data | Excel Discussion (Misc queries) | |||
import external data from changing file name | Excel Worksheet Functions | |||
Excel 97/2000 - Help with looking up external data. | Excel Discussion (Misc queries) | |||
How do I create a list in excel that contains external data? | Excel Discussion (Misc queries) | |||
parameters option on the external data toolbar is not available | Excel Discussion (Misc queries) |