I am writing a procedure in a non-form module (ModHasGlobals).
The procedure has references to a form. I call the code from a button click event :
Private Sub cmdCloseAcMeasurements_Cli
On Error GoTo Err_cmdCloseAcMeasurements
If Me.Dirty Then Me.Dirty = False
The code of ModHasGlobals.RefreshTurtl
eEvents is attached.
When I run the click event, I get an error message: Cannot find form Main. Is there something different that I need to do to reference a form from a code module that is not form-based?