Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying The Long Form of a Month Extracted from a Date 1

Status
Not open for further replies.

xweyer

MIS
Sep 7, 2000
140
US
I have a report based on a query with a parameter [Date1]. What I want to accomplish is to have the month displayed (ie "June") at the top of the report.

I can separate the numeric value of the month using DatePart("m",[Date1]) but I can't figure out how to use a function to get "June" to display instead of "6".

I can get “June” to display by linking to a table I’ve created associating the month name with its number but I would think there is a more direct way of doing this using a function.

(The help information on MSAccess functions is pretty pathetic.)
 
Use format:

?format(date(),"mmmm")

yields: June

Mike Pastore

Hats off to (Roy) Harper
 
Thanks.

I followed your example and substituted my parameter (Format([Date1],"mmmm") and it worked perfectly.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top