Custom events

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
 
P

PC Datasheet

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()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top