Call event in another form

  • Thread starter Thread starter Alen
  • Start date Start date
A

Alen

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

TIA
 
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
 
Back
Top