Thank you. Now, how can I put the calendar in a drop down
box to select a date?
A Calendar Control is one way to pick dates; a Combo Box (a "drop
down") is a different kind of control which can (if you set it up that
way) also be used to pick dates. But you can't put a Calandar Control
in a combo box!
One trick I use to get a combo with the next (say) month's dates is to
have a table named Num with a single field N, with values from 0 to
1000. This table gets a lot of use in many contexts.
You can create a Query:
SELECT DateAdd("d", [N], Date()) FROM [Num] WHERE [N] <= 30 ORDER BY
N;
and base the Combo on this query. It'll show dates from today for the
next thirty days. Adjust the criteria as desired. If you want to
exclude weekends, for instance, use
SELECT DateAdd("d", [N], Date()) FROM [Num] WHERE [N] <= 30 ORDER BY N
AND Weekday(DateAdd("d", [N], Date()), vbMonday) < 6;