How do I execute event on aonather form?

S

SF

Hi,

I have two forms, form1 and form2. How do I execute an event (AfterUpdate)
bound to a countrol (combobox) on form1 from Form2?

SF
 
A

Albert D. Kallal

Change the name of the event from priviate to public.

eg:

Private Sub Text7_AfterUpdate()

to:

Public Sub Text7_AfterUpdate()

Now, in form2, you can go:

Call forms("Form1").Text7_AfterUpdate
 
Top