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

Return the Month name from a datetime field

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
how can I use a query to return the month name from a datetime field.

Ex: SELECT Month(date) FROM tbl

Can you do this in access SQL??

Thanks
 
Hi Grasshopp2k

You need to use for Format function in your query. It is an extremely powerful function to display time, dates, numbers, etc in an infinate variety.

Try the following expression on the query design screen:

Format$(Month([DOB]),"mmmm")

replace DOB with the date/time field you want to change.

Hope this helps

Shane

Shane Brennan
Shane.Brennan@tcat.ac.uk

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top