Solved

extract month and year from date/time field

Posted on 2007-04-03
9
2,382 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 - Access MVP) 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
 
LVL 75
ID: 18845602
??
0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

867 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now