Calenders

RichieP

Rock on!
Local time
Today, 11:37
Joined
Apr 16, 2003
Messages
48
I have a form connected to a query that uses a pop up box for the user to enter two dates DD/MM/YYYY. I have: "Between [Enter first date] and [Enter last date]" typed in the criteria section of the query. The query brings back records I have defined between these two dates.

What I need is a calendar where the user selects (clicks on) the first date and then selects (clicks on) the last date so the query can then bring back the certain fields I need between the selected dates. I'm fed up of typing dates in a pop-up box! Please help. Thanks.

Rich
 
Create a from with two unbound Text boxes and the ActiveX calender that comes with Access. Use the calendar to fill in the dates and then use code like this in your query:

Between [Forms]![FormName]![StartDate] And [Forms]![FormName]![EndDate]

I have assumed that the unbound controls are named StartDate and EndDate and that you have a command button on the from to run the query.

hth,
Jack
 
You'll find my example rather handy on this thread.
 
That has worked an absolute treat. Thanks guys!

And thanks for the speedy reply's!


Rich
:cool:

(I should really learn how to spell . . . 'Calender --> Calendar")
 

Users who are viewing this thread

Back
Top Bottom