using a query to find dates

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

Guest

I have a database where I have a start date and end date.. I would like to
be able to have an input date that will be between start date and end date,
but sometimes the end date will be null. Looking for a result of

Input date <= Start date AND >= End date or end date is null.

What I am currently getting arethe correct records except where the end
date is null, I am getting records that do not match the sart date part of
the criteria.

Please help!!
 
try to write it like that

Input date <= Start date AND >= End date or end date is null
(Input date <= Start date) and (Input date >= End date or end date is null)
 

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

Similar Threads

The query cannot be completed. 1
Using Between...And with General Date 2
Using Between Dates in a Query 4
#error - Blank 3
multiple date ranges 3
Excel Help with dates 2
Parameter Query with DSum 1
Default Dates 2

Back
Top