calendar controls

  • Thread starter Thread starter Lauren B
  • Start date Start date
L

Lauren B

I have calendar controls tied into two combo boxes for users to use to
select a start date and an end date for a query. Right now, it
automatically displays the month of April with the 26th highlight (this is
the date that I put the calendars in my database).

How can I set the calendar control so that when it appears, it will have the
current data highlighted and display the current month?

Thank you in advance for any assistance.

LB
 
How can I set the calendar control so that when it appears, it will have
the current data highlighted and display the current month?
Not sure what you mean by "current data highlighted". If this doesn't work,
please give an example of exactly what you want to see in the calendar.

I think you just want the calendar to always display the current date
whenever the form opens... so...

Use the OnLoad event for the form...
[MyCalendar].Value = Date
should do it.

You could also put this code in the OnCurrent event of the form, so that
even if you select an old Date for some record, when you move to a new or
existing record, the current date will again be displayed in the calendar.

hth
Al Camp
 
Back
Top