G
Guest
I am having trouble referencing subforms; specifically referencing code
behind a subform or passing the name of a sub form to a variable and then
using it in a With statement. I am leaving out some detail because this code
works with three other forms, it fails only on the subform name.
located in the afterupdate part of the main form Inquiry is :
MeForm = "frm Management SubForm"
Call PeopleCheck
and PeopleCheck is:
With Forms(MeForm)
StatOne = .RepInactive
StatTwo = .RepHiSup
.[RepFull].ForeColor = ColorCheck(StatOne, StatTwo)
End With
If there is no solution the the above example, how would you reference a
public procedure behind the subform from the main form. And lastly, is there
a link to a document that explaines the naming conventions so I can learn
this stuff. Many thanks for your efforts.
Thanks
Michael
behind a subform or passing the name of a sub form to a variable and then
using it in a With statement. I am leaving out some detail because this code
works with three other forms, it fails only on the subform name.
located in the afterupdate part of the main form Inquiry is :
MeForm = "frm Management SubForm"
Call PeopleCheck
and PeopleCheck is:
With Forms(MeForm)
StatOne = .RepInactive
StatTwo = .RepHiSup
.[RepFull].ForeColor = ColorCheck(StatOne, StatTwo)
End With
If there is no solution the the above example, how would you reference a
public procedure behind the subform from the main form. And lastly, is there
a link to a document that explaines the naming conventions so I can learn
this stuff. Many thanks for your efforts.
Thanks
Michael