Solved

extract month and year from date/time field

Posted on 2007-04-03
9
2,386 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
  • 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
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 
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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

828 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