Make Calendar Control Invisible

  • Thread starter Thread starter NickG1
  • Start date Start date
N

NickG1

I have a date field that is populated using an activex control for a calendar
pop up.

I need to ensure that the calendar becomes invisible when the user fails to
select a date and clicks on any other control. I’ve used the LostFocus event
to set the focus back to the date control and then make the calendar pop-up
invisible. But how would I make the calendar invisible if the user just
clicks on a blank part of the form or by pressing ‘ESC’. I am not sure if
these would be represented by some event.

Thanks in advance. (I am somewhat of a novice but I am quite intrigued.)
 
Hi Nick,

My advice is to abandon the use of an ActiveX-based calendar
control--they're simply too much headache to keep working reliably,
especially when different operating systems may be in use. Access MVP Allen
Browne has a very nice calendar form that you can implement:

Popup Calendar
http://allenbrowne.com/ser-51.html

Tom Wickerath
Microsoft Access MVP
http://www.accessmvp.com/TWickerath/
http://www.access.qbuilt.com/html/expert_contributors.html
__________________________________________
 
Back
Top