The Active X 8.0 control is not a DROP DOWN control. If
you mean DROP DOWN then you're talking about a combo box.
If, for example you want to be able to list the next 31
days from today in the ComboBox, then simply create a
query which lists the next 31 dates:
1) Create a table with one date field in it.
2) Enter as many dates as you will ever need, say one day
for the next 5 years, that's 365 X 5 entries, or about
2,000. (An update query can help automate this step)
3) In the criteria of a query based on the table, enter:
and then make the query list only the next 31 days using
its TOP VALUES property set to 31.
4) Sort the query "Ascending"
5) Base your ComboBox control's ROW SOURCE on this query
(or SQL) and there you go! The next 31 days are listed
and this will work for the next 5 years! (using 1856
entries.)
You can also list PAST dates by changing the Criteria to
something like =<Date().
Then... in 5 years, they'll have to call you up to modify
the database and that's when you hit them for BIG BUCKS
because you don't work for them anymore! That IS,
assuming they will STILL be using your program! This
reminds me of the time I built a database and programmed
it to halt on a future date of about 5 years with a
message that the system was now unstable and required an
upgrade and a program modification. Of course they had to
come to ME to modify it. Now one else could make sense of
the spaghetti! Who needs those green lines of comments
anyway!
And if you did your job right, hopefully, they'll be
highly dependent on it. And the modification that was
required was simply removing the two lines of code that
halted the system and displayed the message box. Heh,
heh, heh!