D
Deleted member 73419
Guest
I am having trouble writing a class that will pick up on form events. The idea being whenever a form event occurs, the class will pick it up and process it.
Currently I have a class with the following:
Now somehow I need to link the forms to the event handlers which is where I am struggling.
Can anyone shed some light on how this could be achieved please? Any help is appreciated.
Thanks
Currently I have a class with the following:
Code:
Option Compare Database
Public WithEvents dbr As Form
Private Sub Class_Initialize()
End Sub
Private Sub dbr_Load()
MsgBox "Form loaded"
End Sub
Now somehow I need to link the forms to the event handlers which is where I am struggling.
Can anyone shed some light on how this could be achieved please? Any help is appreciated.
Thanks