Custom events

  • Thread starter Thread starter Michael
  • Start date Start date
M

Michael

Hi there,

I have created a subform SFTest with a custom event:
Public Event MyFunction()

How do I sink the event in the main form? I would expect to find something
like: FTest_MyFunction.

Anyone can help?

My subform also have a Sub
Public Sub DoThis()

How do I call this Sub for a particular instance of the subform in the main
form?

Thank you very much for any help.

Michael
 
Place MyFunction() in a standard module then you use it like this:
X = MyFunction

Place Public Sub DoThis() in the class module behind a form and then you can
call it in any other code behind the form with:
Call DoThis()

Place Public Sub DoThis() in a standard module and then you can call it in any
other code anywhere in your application with:
Call DoThis()
 
Back
Top