Brian said:
Is there a way to create a expression in a query to convert a date in
short date format to the abbreviated month name combined with the two
digit year?
For example 17/01/06 to Jan-06
MonthYear: Format(DateField,"mmm yy")
Or just set the format property of the column to "mmm yy".
The difference is that the Format() function is actually converting the
output to a string with the format desired. It will no longer be a date so
sorting, criteria etc., will follow string rules and behavior not those for
dates. If you were to later use this query in other queries, forms, and
reports you will still see the mmm yy format.
If you just set the format property you will still have a real date in your
output. Sorting and criteria rules will still be those for dates, rather
that strings. However; if you feed the output of the query into another
query, form, or report the formatting will likely not cary over and you will
again get the default display format for a date.