Parameter Query using Date Range

ledmark

Ledmark
Local time
Today, 11:39
Joined
Mar 11, 2008
Messages
127
Is there a way to allow the user to enter a date range into a parameter query? Like a start date and and end date?

Thanks for any help.

Laura
 
In the criteria row of the date field you want to do this to put the following:

Between [write anything you want here] and [anything you want]

Inside the brackets, whatever you write will appear on the pop up window so something like [Beginning Date] or [Ending Date] etc will probably be what you use. Hope this helps as it is one of the few things i am sure of with access. :)
 
Yes,
In the criteria enter
Between [enter start date] and [enter end date]

the user will be prompted for the parameters.
I would advise selecting query- parameters from the query menu when in design mode and defining the parameters as dates.

In truth I always used a form to drive my queries with predefined textboxes for the parameters and a command button to run the query.

Brian

PS I see benny got there first.
 
Thank you both for your help - I'll try this also.

Laura
 

Users who are viewing this thread

Back
Top Bottom