Need help with Syntax to call a Parent form function from a module

G

Guest

This is the code I extracted from one of the subforms which works correcly.
lngResult = Me.Parent.UpdateDASubform()
Me.Parent![DASub].Requery

What is the correct syntax to call this function from the update module?
I have tried this which doesn't work:
lngResult = Form!DAMaster.UpdateDASubform()
frm!DASub.Requery
 
G

Guest

Thanks that worked.


The commands now are:
lngResult = Form_DAMaster.UpdateDASubform()
frm!DASub.Requery

Ofer Cohen said:
Try

Form_FormName.SubName

change the FormName and SubName to your objects names
--
Good Luck
BS"D


Al said:
This is the code I extracted from one of the subforms which works correcly.
lngResult = Me.Parent.UpdateDASubform()
Me.Parent![DASub].Requery

What is the correct syntax to call this function from the update module?
I have tried this which doesn't work:
lngResult = Form!DAMaster.UpdateDASubform()
frm!DASub.Requery
 

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