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

Change Date to show text 1

Status
Not open for further replies.

hysonmb

Technical User
Nov 7, 2003
40
0
0
US
I have a query that is pulling the month out of a date/time field in a table. How can I make that query show the month as a text "mmm" rather than numeric? I've already got this in my query:

Month: Month([ComplDate])

This pulls the month as a number.

Thanks
 
Hi hysonmb,

use the format$ like:


strMonth = format$(ComplDate,"mmm")


regards,
nicsin
 
Thanks for your code, but, it comes back prompting for an entry in strMonth
 
Change that last response, thanks for your help, it works.
 
oops, I thought you were in vba! then use

format(ComplDate,"mmm")

in your query.


nicsin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top