Lets assume you named the calendar control MSCalendar1 when you have placed the calender on your form double click it. This will ring you to a code window for the default event of the calendar (probably MSCalendar1_Click). Pull down the Right side combo box at the top of the code window. This contains the names of all events available for the calendar. Choose the LostFocus event. There is a property for the calendar that holds the selected date, i dont know what it's named, but if you type the name of the calendar and then a period VB will show you a list of all the properties and methods for the control. Scroll through the list until you find the property for the selected date (maybe SelDate or something, i dont know). When you think youve found it set a date variable equal to it and see what happes. With the drop down lists of properties and methods VB gives you you can use these steps to find out what properties any active-x control supports. Good luck Ruairi
ruairi@logsoftware.com
Experienced with:
VB6, SQL Server, QBASIC, C(unix), MS Office VBA solutions
ALSO: Machine Control/Automation using GE and Omron PLC's and HMI(human machine interface) for industrial applications