M
mbr96 via AccessMonster.com
I'm trying to extract the month name (not just the number) from a ChkDate
field in a query. ChkDate is a Date/Time data type. I use a DatePart
expression which works fine to pull the month number.
MonthNum: DatePart("m",[ChkDate])
But when I try to format that to get MonthName, it return Jan for any non-
January month and Dec for any January month in ChkDate. Curious. Here's
what I'm trying, and I can't see what's wrong according to syntax in help for
Format and DatePart. Any ideas?
MonthName: Format(DatePart("m",[ChkDate]),"mmm")
Thanks in advance.
MBR
field in a query. ChkDate is a Date/Time data type. I use a DatePart
expression which works fine to pull the month number.
MonthNum: DatePart("m",[ChkDate])
But when I try to format that to get MonthName, it return Jan for any non-
January month and Dec for any January month in ChkDate. Curious. Here's
what I'm trying, and I can't see what's wrong according to syntax in help for
Format and DatePart. Any ideas?
MonthName: Format(DatePart("m",[ChkDate]),"mmm")
Thanks in advance.
MBR