Convert a number to month

J

Jerry

I have a field with the month number (1-12). How do I
convert, say a 4 to read April in a report/form?

Thanks in advance.

Jerry
 
C

Cheryl Fischer

Try the MonthName() function:

MonthName(4, True) returns Apr

MonthName(4, False) returns April


hth,
 
D

Douglas J. Steele

Or if you're using an older version of Access that doesn't have the
MonthName function in it, try

Format$(DateSerial(2000, MonthNumber, 1), "mmm")
or
Format$(DateSerial(2000, MonthNumber, 1), "mmmm")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top