calling a procedure in a child form from a parent form

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
 
R

Ron Weiner

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
 

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