ItIsHardToProgram
Technical User
I have a function that checks for a boolean variable and if that variable is set to false, it needs to cancel the losing focus event, and reset focus. so what I did is a simple if, with a msgbox and if it is false then
Forms![Feuille_Temps_F1]![SelSem].SetFocus
Unfortunatly that does not stop the user from losing focus, why??? (it does not setfocus back on the combo box.)
I tried a cancelevent also, still no effect....
Forms![Feuille_Temps_F1]![SelSem].SetFocus
Unfortunatly that does not stop the user from losing focus, why??? (it does not setfocus back on the combo box.)
I tried a cancelevent also, still no effect....