Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exclude dates from a range 1

Status
Not open for further replies.

CBlackmo

MIS
Jul 23, 2001
18
US
I have written a select query that looks at data from >=1/1/2000 to present. My problem is that I need to exclude one month (August, 2001) from the this date range. Any suggestions?
 
Hi!

Try adding to your criteria And Month([DateField]) <> 9

hth
Jeff Bridgham
 
Between #1/1/2000# And #7/31/2001# Or Between #9/1/2001# And Date()
 
jebry that will omit EVERY august (actually MONTH = 8 is august) i did the same at first but re-read and see CBlackmo only wants August of 2001 omitted, not August of every year.

g
 
Hi!

You're right, I misread the first date as 1/1/2001.

Mea Culpa!

Jeff Bridgham
 
Thanks for your assistance; I used: Between #1/1/2000# and #7/31/2001# or >=#9/1/2001#
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top