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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Monthname in MS Access

Status
Not open for further replies.

magmo

Programmer
May 26, 2004
291
SE
Hi

In SQL Server I can use this code..

DATENAME(mm, dbo.tblTest.Dateordered) AS MonthName

But how do I write the same thing in MS Access?


Regards
 
Something like this ?
Format(Dateordered, 'mmmm')

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Be careful with using "Monthname" as alias , as it is also a function - MonthName(Month([DateField])) - should return the monthname too;-)

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top