How do i reference a popup form in Access VBA
问题 When I click on a button that creates a popup form, my VBA code Screen.ActiveForm still references the form containing the popup button, even when the popup form has focus. How do I reference the popup form in this case? So confused why Access doesn't register the popup with focus as the active form... 回答1: You can use the Forms collection which lists all open forms Forms!MyPopup or, if you have invalid characters in the name of the form Forms![My Popup] or Forms("My Popup") You can access