G
Guest
I'm running into some issues with access in formatting dates correctly. I'm running a query that sums values based on months, so I have a column like the following
MONTH: DatePart("m",[SOME_DATE_COL]
So, I'm calculating values on a monthly basis. This works all fine and dandy... It gives me all the results on a monthly basis, regardless of the day... but the months are given in numerical format. Needless to say, not the finest in usability. So I wanted to try something like the following
MONTH: Format((DatePart("m",[DOCUMENT_DATE])),"mmm"
So rather than getting 1, 2, 3... I would get JAN, FEB, MAR... But for some reason it returns JAN regardless of what the number is. If I run the query without the formatting I get an array of numbers correctly representing the months: 1, 2, 3,...,11,12 The moment I add the formatting code all I get is JAN down the column
Any ideas on what might be causing this? It appears that access is only picking up the 1 and ignoring anything else? I've run out of ideas on how to get this to work. Any suggestions or workarounds would be highly appreciated
Thanks mucho
MONTH: DatePart("m",[SOME_DATE_COL]
So, I'm calculating values on a monthly basis. This works all fine and dandy... It gives me all the results on a monthly basis, regardless of the day... but the months are given in numerical format. Needless to say, not the finest in usability. So I wanted to try something like the following
MONTH: Format((DatePart("m",[DOCUMENT_DATE])),"mmm"
So rather than getting 1, 2, 3... I would get JAN, FEB, MAR... But for some reason it returns JAN regardless of what the number is. If I run the query without the formatting I get an array of numbers correctly representing the months: 1, 2, 3,...,11,12 The moment I add the formatting code all I get is JAN down the column
Any ideas on what might be causing this? It appears that access is only picking up the 1 and ignoring anything else? I've run out of ideas on how to get this to work. Any suggestions or workarounds would be highly appreciated
Thanks mucho