How do I get all the dates that occured in a specifed month regardless of day or year?

We want to pay our respects to horses that have died in a specific month.  So in my report, Horses that have Crossed Rainbow Bridge (died), I only want the names of the horses that died during the month of, say, August, regardless of day or year.
So what is the criteria in the datDateCrossedRainbowBridge column of the report's Record Source query?
bobbatAsked:
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.

Dale FyeCommented:
SELECT * FROM yourTable
WHERE Month([datDateCrossedRainbowBridge]) = 8
0
hnasrCommented:
or;
SELECT * FROM tbl
WHERE FORMAT([datDateCrossedRainbowBridge],"mmmm")="August"

Open in new window

0
aikimarkCommented:
If you are running this report for the current month:
SELECT * FROM HorsesTable
WHERE Month([datDateCrossedRainbowBridge]) = Month(Date)

Open in new window

If reporting on next month's horses
SELECT * FROM HorsesTable
WHERE Month([datDateCrossedRainbowBridge]) = (month(x) mod 12) + 1

Open in new window

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.

bobbatAuthor Commented:
For Dale Fye and hnsar: Your SQL works, thanks.


For aikimark:  When I execute the report with Record Source of: SELECT * FROM tblHorses WHERE Month([datDateCrossedRainbowBridge]) = Month(Date)

I get a dialog box asking me ("Enter Parameter Value") for the "Date".  If I enter todays date or any date the report works.  I would like to be able to skip entering the date.  How can I do this?
0
aikimarkCommented:
Either this:
SELECT * FROM tblHorses WHERE Month([datDateCrossedRainbowBridge]) = Month(Date())

Open in new window

or this:
SELECT * FROM tblHorses WHERE Month([datDateCrossedRainbowBridge]) = Month(Now)

Open in new window

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
bobbatAuthor Commented:
That worked.  Access turns it into:
SELECT * FROM tblHorses
WHERE (((Month([datDateCrossedRainbowBridge]))=Month(Date())));

Thanks to all.

This report reminds us that in 2008 Point To Ponder was euthanized after screws securing the broken bone in her knee failed.
The tribute video is here: https://www.youtube.com/watch?v=hnQAlC7-vng
0
bobbatAuthor Commented:
Many thanks to everyone that helps us with the horses.  https://www.facebook.com/bhfer
0
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.