Search between day range

Rabbit

Mr. Rabbit
Local time
Today, 03:56
Joined
Aug 3, 2010
Messages
31
Dear All,

I have a question:
I have 2 text boxes for user to enter Start Day and End Day, I only use the Start Day for all my queries. I can also sql to union Start day and End day to form a Special Date field.
What if the event start day is January and end day is March. During the search for the appearance for list of event for Feburary, I could not see it on the result.
Any method to guarantee the appearance. What is start - Jan and end at June.......?????:confused:
 
You could use;
Code:
>= #StartDate# And <= #EndDate#
as the criteria in your query.
 
You could use;
Code:
>= #StartDate# And <= #EndDate#
as the criteria in your query.

Thank you John,

The whole story is for some sick leave records, it has the possibility of consecutive days. I have created a form to accomodate the above situation with Start Day and End Day.
For example:
DetailID Name StartDay EndDay
5 Mary 1/1/2000 3/3/2000

When I do the query, I created a form for user to enter a day range (DayS, DayE) by 2 text boxes with pop up calendars.
Even if I union the startday and endday into one table, I cannot find Mary in Feb 2000............?


Simon
 
Could you possibly post a copy of your DB ('03 version if possible)?

May take some times, cause after I created it, the company is using it.
I want to perfect it a little. It contained some privacy data already.
Will let you know as soon as I can get it!

Thanks in advance!
 

Users who are viewing this thread

Back
Top Bottom