Call event in another form

A

Alen

Hello, Is it possible to call event procedure in another form. For example,
Form1 calls Form2_Current() ?

TIA
 
M

MacDermott

To do this, you'll need to change the declaration on Form2
Private Sub Form_Current()
becomes
Public Sub Form_Current()
You can then call Form2.Form_Current from other forms.

However, I've found it often works better to take the code from Form_Current
and put it in a Public Sub in a standard module.
You can then call it both from Form2 and from whatever your other form is.

HTH
- Turtle
 

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