Looking up by dates in a range

B

BigBlueMan

I have a database of activities that take place between a start date and an
end date.

How do I arrange a query so that I can get all the activities that take
place BETWEEN two dates? (ie.. Say I want a report from January 1 thru
June 30. It might include an item that starts on February 1, and ends March
15)

If I put in 01/01/04 as the start, it is an absolute and would not pick up
this event.

Thanks!

ed
 
A

Anno v. Heimburg

BigBlueMan said:
How do I arrange a query so that I can get all the activities that take
place BETWEEN two dates? (ie.. Say I want a report from January 1 thru
June 30. It might include an item that starts on February 1, and ends
March 15)

What prohibits you from using something like "queryStart <= startDate AND
endDate >= queryEnd"?

Anno.
 
B

BigBlueMan

Thanks! Went into the SQL view and added the '<' and '>' signs and it works
like a charm!
ed
 

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

Top