Re: Date Range
- From: "Van T. Dinh" <VanThien.Dinh@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 17 Jun 2005 11:14:23 +1000
Try:
....
WHERE ([DateField] >= [Enter Start Date:])
AND ([DateField] < DateAdd("d", 1, [Enter End Date:])
It is liklely that you have non-zero time component in your values and in
this case:
[A Specific Date] + [A Non-zero Time] > [A Specific Date]
--
HTH
Van T. Dinh
MVP (Access)
"Michael Kaendera" <MichaelKaendera@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:81BBB44C-BB37-43A5-AE72-9D006F2BCE15@xxxxxxxxxxxxxxxx
> I have a query that asks users for a date range.It asks the users to put
in
> a starting date and also asks the user to put an ending date. The query
works
> fine but the only problem withthe query is that when I enter the same date
in
> the date range it does not return any records. (Like if I want to get
today's
> records only) I want the query to return records when I enter the same
> starting and ending date.
.
- References:
- Date Range
- From: Michael Kaendera
- Date Range
- Prev by Date: Re: Ranged Cells to Access from Excel?
- Next by Date: Max vs. Last
- Previous by thread: RE: Date Range
- Next by thread: Query acting up!
- Index(es):
Relevant Pages
|