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

setting a criteria in a query

Status
Not open for further replies.

scott1891

MIS
Mar 18, 2002
12
US
I made a query, in my fiel named date I need to have it open by typing a range and generate info by it..example, when open the query I want it to prompt me to enter a beginning date and ending date(##/##/### to ##/##/####)which will give me all the info between the two dates. Any ideas?
 
Put the following on the criteria line of your date field:

Between [Enter Start Date: ] And [Enter End Date: ] Best Regards,
Mike
 
PARAMETERS [Enter Start Date:] Date, [Enter End Date:] Date ;
SELECT Table1.*, Table1.TestDate
FROM Table1
WHERE (((Table1.TestDate) Between [Enter Start Date:] And [Enter End Date:])); Steve Medvid
"IT Consultant & Web Master"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top