I have some code that is repeated in variouys forms etc.
From what I believe you can make the code a module and direct the event to it, instead of writing the code for each form that the same code is required.
How would I go about doing this, say for the code below.
Private Sub Form_Close()
DoCmd.Close acForm, "Householder Menu"
DoCmd.OpenForm "Householder Menu"
End Sub
Thanking you in advance.
Ian
From what I believe you can make the code a module and direct the event to it, instead of writing the code for each form that the same code is required.
How would I go about doing this, say for the code below.
Private Sub Form_Close()
DoCmd.Close acForm, "Householder Menu"
DoCmd.OpenForm "Householder Menu"
End Sub
Thanking you in advance.
Ian