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

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
Back
Top