I developed coding behind a button on a Subform. When clicked, it would update the Subform and the Main Form. But it would not let me save the change in the Main Form.
So I put the code in a Module and slightly modified it. It compiles OK. What code do I use to CALL THE PROCEDURE when the user clicks a button on the Subform. Here's my code, behind the "OnClick" button.
Private Sub cmdRetentionUpdateModule_Click()
RetentionUpdate
End Sub
I get this Compile error: "Expected variable or procedure, not module." Help!