I tried every think to move the focus from the combox but nothing works.
Me.Repaint
Me.OtherComboBo x.SetFocus
DoCmd.GoToContr ol "OtherCombo Box"
But still the message appears:
"You can't hide a control that has the focus."
The question is how to remove the focus from the combobox?
Regards,
Simon
"Arno R" <ar************ ****@planet.nls chreef in bericht
news:48******** **************@ text.nova.plane t.nl...
"Simon" <Sv********@Ver satel.nlschreef in bericht
news:48******** *************** @news.tele2.nl. ..
On the event "Lost focus" I make the ComboBox invisible but the massage
pops
up
"You can't hide a control that has the focus." But this code is written
in
the "Lost focus" event so the combobox has not longer the focus
regarding
this event.
So don't use that event for this action. . .
And if I set the focus to an other control, the code
Me.ComboBox.Vis ible =
False
delivers still the massage: "You can't hide a control that has the
focus."
>
The question is now:
How to move the focus from the ComboBox and hide the ComboBox.
Oh please. . .
FIRST set focus to another control,
THEN make your combo invisible. . .
Arno R