B
Beth
I am writing out a recordset to Excel using CopyFromRecordset. Some
of the fields in the recordset are defined in Access as dates. When
Excel opens, these fields are displayed as Julian dates, I think.
(37824 = 7/22/03)
The end use for the spreadsheet is to create pivot charts. My user
could reformat these Julian date columns to mm-yyyy in the
spreadsheet, or whatever format he would like, but he does not want to
have to do this. My question is how can I format, in my Access
application code, the date columns to automatically display mm-yyyy
format in the spreadsheet?
I tried FORMAT(mydate, "mm-yyyy") in the query in my code, but then
Excel sees this as text, and the pivot charts start ordering things as
such (so 01-2001 is followed by 01-2002, as opposed to 02-2001; Excel
is doing what it should be doing for a TEXT field, just not what I
want it to be doing).
TIA
of the fields in the recordset are defined in Access as dates. When
Excel opens, these fields are displayed as Julian dates, I think.
(37824 = 7/22/03)
The end use for the spreadsheet is to create pivot charts. My user
could reformat these Julian date columns to mm-yyyy in the
spreadsheet, or whatever format he would like, but he does not want to
have to do this. My question is how can I format, in my Access
application code, the date columns to automatically display mm-yyyy
format in the spreadsheet?
I tried FORMAT(mydate, "mm-yyyy") in the query in my code, but then
Excel sees this as text, and the pivot charts start ordering things as
such (so 01-2001 is followed by 01-2002, as opposed to 02-2001; Excel
is doing what it should be doing for a TEXT field, just not what I
want it to be doing).
TIA