Solved

How print month name using date on a report

Posted on 2014-01-15
2
773 Views
Last Modified: 2014-01-15
I am trying to print the name of the month using a date on a report.  So if for example the date on the report is 6/20/2014 then I want a field to show "June".

How?
0
Comment
Question by:SteveL13
2 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 250 total points
ID: 39782390
=format(#6/20/2014#,"mmmm")

=format(DateField,"mmmm")
0
 
LVL 47

Assisted Solution

by:Dale Fye (Access MVP)
Dale Fye (Access MVP) earned 250 total points
ID: 39782406
For a lot of my reports, I like to put the month in the reports title, which is a label.

To do so, I use the Report_Open event, something like:

Private Sub Report_Open

    me.lbl_Title.Caption = "Some Report Name (" & Format(date(), "mmmm") & ")"

    'or for month year
    'me.lbl_Title.Caption = "Some Report Name (" & Format(date(), "mmm yy") & ")"

End Sub
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
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…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

830 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