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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Between statement in a query

Status
Not open for further replies.

mot98

MIS
Joined
Jan 25, 2002
Messages
647
Location
CA
Hi all,

I have setup a query on one of my tables, that gets the user to input a start date and an end date.

The query works fine if you use multiple dates Ex: "08/25/2003" to "08/27/2003", it returns values for the 25th and 26th, but not for the 27th.

My statement looks like this:

Between [Forms]![frmMachineAll]![StartDate] And [Forms]![frmMachineAll]![EndDate]


How can I get it to return all records for every day entered???

Thanks for any tips...

mot98
[cheers]
"I'd rather be dead and cool..then alive and uncool."
---Harley Davidson & The Marlboro Man
 
Just a quick update...

If I run the query using "08/25/2003" to "08/25/2003" I get no results coming back.

But if I run the query using "08/25/2003" to "08/26/2003" I get both the 25th and 26th records?

How can I get it to work if they just want to type in the one day?

Thanks....

mot98
[cheers]
"I'd rather be dead and cool..then alive and uncool."
---Harley Davidson & The Marlboro Man
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top