Querie: Dates

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

How do i only select records for 1 month at a time in a querie.

i have an august querie with this formula under criteria, <#8/31/2004#

but its also selcting the previous months.....how do i make it only show
records between august 1 - august 31??

Help!

Thanks, Cheers.
 
emmy128 said:
Hi,

How do i only select records for 1 month at a time in a querie.

i have an august querie with this formula under criteria, <#8/31/2004#

but its also selcting the previous months.....how do i make it only
show records between august 1 - august 31??

Help!

Thanks, Cheers.

... WHERE YourDateField Between #8/1/2004# AND #8/31/2004#

will work if your data field contains only dates, with no time portion.
If it might contain a time, you'd better use this instead:

... WHERE YourDateField >= #8/1/2004# AND YourDateField < #9/1/2004#
 

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