Make Calendar Control Invisible

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.)
 
T

Tom Wickerath

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
__________________________________________
 

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