Solved

extract month and year from date/time field

Posted on 2007-04-03
9
2,390 Views
Last Modified: 2008-01-09
Microsoft Access
Date/Time Field -  Monday, April 02, 2007- ....extract month and year to show "April 2007"
0
Comment
Question by:gueraf
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
9 Comments
 
LVL 13

Expert Comment

by:lucas911
ID: 18845395
format(now(),"Mmmm yyyy")
0
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform) earned 250 total points
ID: 18845509
Format([YourDateField],"Mmmm yyyy")

mx
0
 
LVL 13

Expert Comment

by:lucas911
ID: 18845589
I'll let this one slide
0
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 
LVL 75
ID: 18845602
??
0
 
LVL 13

Expert Comment

by:lucas911
ID: 18845680
i gave him what he wanted.  So why did he accept your answer?  
0
 

Author Comment

by:gueraf
ID: 18845712
I had an existing field named adate which I needed to extract from, now() will not work
0
 
LVL 13

Expert Comment

by:lucas911
ID: 18845722
so then you should have been more clear in your question then
0
 
LVL 75
ID: 18845784
"Date/Time Field ..."

That was very clear to me.  

Also, when I brought up the Q ... no one had yet posted.  I got a phone call, and came back to it, typed my answer ... and hit Submit.

Sorry ....

mx
0
 

Author Comment

by:gueraf
ID: 18845799
sorry, will make sure to be clear next time.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Calculation in a Report 13 43
Return Data From Website in Access 6 59
Why Won't My Excel Workbook Refresh The Data 2 47
ACCESS / VBA - Count of Rows in Table 4 47
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

752 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