MS Access 2016 bug: if a form's "Popup" property is changed to "Yes" then Screen.ActiveForm stops working
There is a bug in MS Access 2016 in which if one changes the property of a form's "Popup" to "Yes" then Screen.ActiveForm function stops working... after a while. If I toggle it to "No" it works again. Can you please fix this bug?
Jf Ruiz commented
I think that is not a bug, but an intended behaviour.
PopUps don't get focus and that change results of some functions.
If you use Screen.Activeform inside a Popup form module, it will return the same as [Me].
But, if you use Screen.Activeform from a standalone module, it will return the first non Popup form opened.
If you use Screen.ActiveControl inside a Popup form module, you will get that popup form active control.
But if you use Screen.ActiveControl from a standalone module it will return the control focused in the first non Popup form opened.