Are you actually storing a month name or text in your table? If you want
to
store any part of a date, you should be storing a number. Forms and
reports
can always "display" a text value based on the number.
If you can't find a numeric value in your tables then you need to convert
your text to a number. It isn't clear if you stored the entire month name
or
just the first three characters. If you stored the entire month name, you
can set your sorting and grouping to an expression like:
=Instr(Left([Month Due], 3), "JanFebMar...Dec")
--
Duane Hookom
MS Access MVP
Roger Bell said:
Thanks Duane. It is actually a seperate Table with the Months already
entered
as Text and a Combo Box on the Main Form. Is there any other way
around
this?
Much appreciated
:
You can only sort a report based on values in the report's record
source.
I
expect your Month Due was calculated from a real date field. Set your
sorting and grouping expression to:
=Format([Real Date Field], "yyyymm")
--
Duane Hookom
MS Access MVP
I have designed a Report with a Field called "Month Due" as the
Header.
When
I run the report the Months are sorted in Alpha order. I would like
the
Months to be listed from January to December.
Is there a way that this can be achieved?
Thanks in advance for any guidance