GotFocus and LostFocus

gary.newport

Registered User.
Local time
Today, 11:46
Joined
Oct 14, 2009
Messages
79
I have a number of objects on a form but two are important to each other.

I have a combo box called txtDate. This needs to be a combo box because the user needs to have a list of previous dates recorded.

I have a Calendar Control 12 item called clrDatePicker. I want this so that users can easily select a date, rather than try to remember a non-selected one. The Access date picker is not available for Combo Boxes.

By default the calendar control is not visible. When txtDate gets the focus then clrDatePicker becomes visible.

The issue is that I want clrDatePicker to not be visible once any other control on the system gains the focus apart from txtDate and clrDatePicker.

I did try to use the LostFocus event for txtDate and then use an IF with ActiveControl but I now realise that the object does not lose the focus until the event has finished.

Any ideas?
 
Use the Mouse_Move event of the DETAIL section of your form to hide the control.
 

Users who are viewing this thread

Back
Top Bottom