calling a procedure in a child form from a parent form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,
I have a problem whereby I have a main form called frmMain say, and I wish to call a procedure called LoadGrid in a child form call frmChild. I have tried

call frmMain.frmChild.LoadGrid but this doesn't work, any ideas??

Geri
 
Geri

Try

Call Me.YourSubformName.Form.LoadGrid

Where Your SubformName is the name of the Subform CONTROL (NOT the name of
the subform Soucce Object) on your form. You also need to make sure the Sub
LoadGrid is defined as Public in the child form as"

Public Sub LoadGrid()
...
End Sub

Ron W
Geraldine Hobley said:
Hello,
I have a problem whereby I have a main form called frmMain say,
and I wish to call a procedure called LoadGrid in a child form call
frmChild. I have tried
 
Back
Top