Hi All,
I have several forms which are basically a copy of one another, the only difference is is that each one has a combo box or two missing, and or a variation of buttons. I also have some simple vba code I want each of these forms to use. At the moment I have the code on each form, but if I want to make a change to the code I will have to repeat the change on every form.
How do I make the code below available to all forms (or even a selection of forms) and only to exist once, i.e. not in every form?
Here is my code:
Many thanks
I have several forms which are basically a copy of one another, the only difference is is that each one has a combo box or two missing, and or a variation of buttons. I also have some simple vba code I want each of these forms to use. At the moment I have the code on each form, but if I want to make a change to the code I will have to repeat the change on every form.
How do I make the code below available to all forms (or even a selection of forms) and only to exist once, i.e. not in every form?
Here is my code:
Code:
Private Sub cboLocationID_Change()
Me.cboManagerID.Requery
Me.cboManagerID = ""
End Sub
Many thanks