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

Date query in Access

Status
Not open for further replies.

outbackut

Technical User
Aug 14, 2002
2
0
0
US
How do I enable a query to prompt a user for a date, which will retrieve all records with that date in the database? I think I have to put something on the Criteria line, but I am not sure what.

Thanks.
 
First, make your query putting in the fields you need to return.

Then, in query design, right-click and select parameters
Add a date/time field called "MyDate" or whatever you want to name it..

then set the Criteria field to be
[MyDate]

if you should need the query to return less than or greater than the date entered just change the criteria to
< [MyDate] or
> [MyDate]

That should take care of it.
Netooi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top