?
Solved

Format a date in Microsoft Access 2007 in a query

Posted on 2011-03-18
6
Medium Priority
?
416 Views
Last Modified: 2012-05-11
I have a query where I'm pulling the month from the date using a DatePart function:

Month: DatePart("m",[startDate])

How then, would I format this date to spell out the entire month?  I tried this

                             FullMonth: Format(DatePart("m",[startDate]),"mmmm")

but it's not working.  It's spelling out the complete months, but the months are all wrong.  

Thanks!
0
Comment
Question by:ssailer
  • 3
  • 2
6 Comments
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform) earned 1332 total points
ID: 35166811
How about just

FullMonth: Format([startDate],"mmmm")

You could add more if needed (Year, etc)

mx
0
 
LVL 44

Assisted Solution

by:GRayL
GRayL earned 668 total points
ID: 35166812
Format(StartDate,"mmmm")
0
 
LVL 75

Assisted Solution

by:DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform)
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform) earned 1332 total points
ID: 35166823
For example:

FullMonth: Format([startDate],"mmmm  mm-dd-yyyy")

mx
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:ssailer
ID: 35166934
Thanks, everybody.  I'm just starting to get back into working with Access after ten years of being away from it.  :)
0
 
LVL 75
ID: 35166950
You are welcome.

An welcome back to Access.

And thank you for using Experts Exchange ..

mx
0
 
LVL 44

Expert Comment

by:GRayL
ID: 35167011
Ditto ;-)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you’re using QODBC to update QuickBooks data from Microsoft® Access but Access is not showing the updated data, you could have set up QODBC incorrectly.
In a use case, a user needs to close an opened report by simply pressing the Escape (Esc) key. This can be done by adding macro code in Report_KeyPress or Report_KeyDown event.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question