How do I execute event on aonather form?

  • Thread starter Thread starter SF
  • Start date Start date
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
 
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
 

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

Back
Top