D
David A
I am working in a country where dates are printed d/m/y. I find that users
often don't have their Regional date settings set correctly so in Access
projects we have always hardcoded the date format in reports as "dd/mm/yyyy"
or "dd/mm/yy". I've done this in projects for years using mostly Access 97
without a problem. Now we've "upgraded" [sic] to Access 2003 and it doesn't
work. No matter what I do, the date fields in reports always format with the
default regional date.
e.g. for a Text box in a report
Control Source: TranDate
Format: dd/mm/yy
The format drop-down box is showing only the default date and time formats,
so I guess the system is recognising that the underlying data type is a
date. But it won't act if we enter a custom date format. Likewise "ddd mmm"
and other such variants don't work either.
My work-around solution has been to change the Control Source to
=Format([Trandate],"dd/mm/yy") but that's not satisfactory and will give an
error if the date is a null value. Plus it's a real pain to go through all
the reports in all our projects and fix up what should be proper behaviour.
Any suggestions to fix this?
often don't have their Regional date settings set correctly so in Access
projects we have always hardcoded the date format in reports as "dd/mm/yyyy"
or "dd/mm/yy". I've done this in projects for years using mostly Access 97
without a problem. Now we've "upgraded" [sic] to Access 2003 and it doesn't
work. No matter what I do, the date fields in reports always format with the
default regional date.
e.g. for a Text box in a report
Control Source: TranDate
Format: dd/mm/yy
The format drop-down box is showing only the default date and time formats,
so I guess the system is recognising that the underlying data type is a
date. But it won't act if we enter a custom date format. Likewise "ddd mmm"
and other such variants don't work either.
My work-around solution has been to change the Control Source to
=Format([Trandate],"dd/mm/yy") but that's not satisfactory and will give an
error if the date is a null value. Plus it's a real pain to go through all
the reports in all our projects and fix up what should be proper behaviour.
Any suggestions to fix this?