Current month

  • Thread starter Thread starter Fay Yocum
  • Start date Start date
F

Fay Yocum

I am creating a desktop shortcut so that the secretary can click the button
and access a report that has the classes and their rooms listed. How do I
make it give only the current month? Thank you. I am using Access03.
 
Thank you I will put this to use. Fay

Rick Brandt said:
In your query add a criteria to the date field of...

AND < DateSerial(Year(Date()), Month(Date()) + 1, 0)

That will automatically roll over each month and work for a month of any
length and at the year end boundaries.
 
Fay said:
I am creating a desktop shortcut so that the secretary can click the
button and access a report that has the classes and their rooms
listed. How do I make it give only the current month? Thank you. I am
using Access03.

In your query add a criteria to the date field of...
= DateSerial(Year(Date()), Month(Date()), 1)
AND < DateSerial(Year(Date()), Month(Date()) + 1, 0)

That will automatically roll over each month and work for a month of any length
and at the year end boundaries.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top