st4rcutter
Technical User
I'm familiar with the FORMAT() and CDate() functions, but I'm having a little difficulty getting this to work on what would seem a very simple problem. Here is what I am trying to accomplish:
I have a valid date format...example 7/03/2006. I determine the month with Format([qryInstalls]![Date1],"mmmm"). Once I have the month value on each record I would like to be able to sort the records chronologically by month name. Since the month format is now text, the sort is alphabetical...April, August, February...etc. I need to be able to determine the month name from the date while still maintaining a date format. I tried using Monthname(month([qryInstalls]![Date1],"mmmm")) but Monthname is not supported when you export this data to Excel which is something I must be able to do. I also can't sort on a separate column with monthnumber because I need these month names to be valid dates for sorting in Excel. Any ideas? CDate() does not accomplish the task either. Thank you!
I have a valid date format...example 7/03/2006. I determine the month with Format([qryInstalls]![Date1],"mmmm"). Once I have the month value on each record I would like to be able to sort the records chronologically by month name. Since the month format is now text, the sort is alphabetical...April, August, February...etc. I need to be able to determine the month name from the date while still maintaining a date format. I tried using Monthname(month([qryInstalls]![Date1],"mmmm")) but Monthname is not supported when you export this data to Excel which is something I must be able to do. I also can't sort on a separate column with monthnumber because I need these month names to be valid dates for sorting in Excel. Any ideas? CDate() does not accomplish the task either. Thank you!