vicissitude
Registered User.
- Local time
- Today, 16:57
- Joined
- Feb 28, 2010
- Messages
- 92
I was wondering if someone could give me a hand with this one....
I have referenced a control on a form from a function in a module using this:
Forms(frm.Name).Controls(ctl.Name).Value
The function looks like this:
Function(frm as form, ctl as control)
The function call looks like this:
Call Function(me, me.ctl)
This all works fine but i cannot work out how to do the same thing except referencing the control in a subform, i.e. what do you pass to the function and how do you reference it in the function?
I have tried everything i can think of, stuff like....
Forms(frmParent.name).Forms(frmSubform.name).Controls(ctl.name).value
and passing it like this...
Call Function(me.parent, me, me.ctl)
Function(frmParent as form, frmSubform as form, ctl as control)
but no luck.
Thanks in advance.
I have referenced a control on a form from a function in a module using this:
Forms(frm.Name).Controls(ctl.Name).Value
The function looks like this:
Function(frm as form, ctl as control)
The function call looks like this:
Call Function(me, me.ctl)
This all works fine but i cannot work out how to do the same thing except referencing the control in a subform, i.e. what do you pass to the function and how do you reference it in the function?
I have tried everything i can think of, stuff like....
Forms(frmParent.name).Forms(frmSubform.name).Controls(ctl.name).value
and passing it like this...
Call Function(me.parent, me, me.ctl)
Function(frmParent as form, frmSubform as form, ctl as control)
but no luck.
Thanks in advance.