Here's something I put together that may give you some ideas about
making time periods and other criteria dynamic.
The free downloadable sample database at
www.bullschmidt.com/access
uses the query by form concept so that on the invoices dialog one can
optionally choose a rep, a customer, and perhaps a date range, click on
a button that says "Input," and then have the invoice form open up
showing all the invoices that match the criteria.
Thus the min and max date fields on the initial form can be typed in or
perhaps automatically filled in with your datepicker and then the rest
(form running off query which receives its criteria from the initial
form which stays open in the background) should still work.
Best regards,
J. Paul Schmidt, Freelance Web and Database Developer
http://www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips
[color=blue]
>Does anyone else use Brendan Kidwell's >DatePicker, and does anyone know
>how to pass dates from the DatePicker into a >query? I have tried for 3
>days but keep getting an error "you cannot use this >procedure at this
>time".[/color]