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

Using Between / And

Status
Not open for further replies.

justlearning2003

Technical User
May 26, 2003
34
CA
Hey,

I am creating my query and when I use the following criteria
Between [Start Date] And [End Date]
The query do not return any records if I use a single date. IE 5/27/03
But if I use 5/27/03 to 5/28/03 then it returns records for both days.
Any ideas?

Thank you
 
Surround the date with #
eg. #06/05/03#
So that the query recognizes the data as a date.
Thanks
Chett
 
BETWEEN only shows records that are between the two dates not the dates themselves. Try something like:

>=[Start Date] AND <=[End Date]
 
Hey,

thanks for the replies. I just figured out the field is question here is a text field and not a date field. Below is an example if what would show in the table.
4/18/03 11:53:18 PM
Any ideas on how to just take the &quot;4/18/03&quot;
out of this field?

Thanks

 
Is there any reason why you have it set to a text field? The easiest solution would be to change it to a Date/Time field.
 
hey,

If it was up to me i would change it, but Unfortunately I don't have the power.

HeHe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top