How to a get the date range to just display in months?

I have a date range that can to back several years. I want to have my report just display the months. How can I do this? Sorry, it may be a simple question, but I am very new to Access.
Casie RenegarAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gustav BrockCIOCommented:
You can use Format:

    YearMonth: Format([YourDateField], "yyyy-mm")

or just:

    Month: Format([YourDateField], "mm")

/gustav
0
Dale FyeCommented:
Can you give an example?

Are you looking for something like:  Feb-Jun 2014, Nov 2014 - Feb 2015, ...
0
Casie RenegarAuthor Commented:
So if my start date is  7/3/2014 and my end date is 12/15/2015. I would like my Access Report to display something like what my Excel table looks like, that I attached to this message.
help.xlsx
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Rey Obrero (Capricorn1)Commented:
just use

Format([DateField],"mmmm")
0
Casie RenegarAuthor Commented:
I have tried these options and I am getting an error message of Mismatch data type. Any other suggestions?
0
Eric ShermanAccountant/DeveloperCommented:
As Ray stated should work.  Please explain where you are using the Format([DateField], "mmmm")??

ET
0
Casie RenegarAuthor Commented:
In Design View of my Query: in the criteria area of the Date column.
0
Eric ShermanAccountant/DeveloperCommented:
That should not go on the criteria line ... please remove from there.  That needs to be on the field itself as shown below:

Just replace [YourFieldName] below with the actual field name.

Format([YourFieldName], "mmmm"): Reporting_Month

ET
0
Eric ShermanAccountant/DeveloperCommented:
Sorry ... had it backwards ... try this one ...


 Reporting_Month: Format([YourFieldName], "mmmm")

ET
0
Rey Obrero (Capricorn1)Commented:
to be clear, in the design view of your query

 Field   Reporting_Month: Format([YourFieldName], "mmmm")
Table
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.