Calendar Control question

G

Guest

I'm using Access 2000 with Calendar Control 10.0

I have a calendar control on a form. When the form is opened, the calendar
is set to a date in the past. How do I set up the calendar control so that
the current date is always selected when the form is opened?

Thanks in advance.

Evan
 
V

Van T. Dinh

In the Form_Load Event, use:

Me.CalendarControl.Value = Date()

You can even omit ".Value" since Value is the default Property.

OTOH, Calendar 10.0 comes with A2K2. If you are using A2K0, the correct
Calendar version is 9.0.
 
T

Tony Toews

Evan said:
I'm using Access 2000 with Calendar Control 10.0

See the Calendar Tips page at my website
http://www.granite.ab.ca/access/calendars.htm

There could, likely will, be lots of version problems when you go to
distribute the MSCal.OCX..

One alternative is MonthCalendar is a completely API generated Month
Calendar derived directly from the Common Control DLL. There are
links to several downloadable calendar forms at my website. As these
are forms you can also do anything with them you want.

You can also use the calendar form which comes in the Access <insert
your version here> Developers Handbook by Litwin/Getz/Gilbert,
publisher Sybex www.developershandbook.com. These books are well
worth spending money. Every time I open one I save the price of the
book.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top