I've set a variable to the active form name and it works fine when the form is active, however, I'm trying to debug part of the code that doesn't work right and when it gets to where it sets the variable to the active form, it gives a Run-time error '2475' message: You entered an expression that requires a form to be the active window.
This only happens when running the code in the editor (I'm stepping into each line) so the form isn't active, the editor is. How do I get around this so I can debug the rest of the code?
Dim frm as Form
Set frm = Screen.ActiveForm
This only happens when running the code in the editor (I'm stepping into each line) so the form isn't active, the editor is. How do I get around this so I can debug the rest of the code?
Dim frm as Form
Set frm = Screen.ActiveForm