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!

how to query by a date range?

Status
Not open for further replies.

dmbfan715

Technical User
Joined
Jun 27, 2002
Messages
20
Location
US
Hi,

I just discovered this site today! It's wonderful. :) I'm making a database at work and need help with a query. I'm trying to pull records within a date range: (user inputed date till the of the year). Is there an easy way to do this? Thanks in advance!

 
Sure.

You can use the Between command like this:
Code:
=Between [UserInputDate] And DateValue("12/31/" & Year(Date))
Paste this into the criteria of the date field in a query and see if it works like you want.
God Bless
Mike ;-)
 
Hi Mike,

Thanks for the speedy response. I'll try it out. =)

Shivani
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top