stopher
AWF VIP
- Local time
- Today, 23:13
- Joined
- Feb 1, 2006
- Messages
- 2,395
Not sure if I understand exactly what you are trying to do but maybe a couple of things might help:
- you can reference a parent form in subform code with me.parent. So a subform does not need to know the name of the parent for to reference it
- you can pass a form (or subform) as an argument to a function:
Public afunction(aForm as form)
debug.print aFrom.someProperty
'etc
End Function
not sure if either help.
Edit: Oops sorry, I see ChrisO had already mentioned the parenting thing. My bad for not reading the thread.
- you can reference a parent form in subform code with me.parent. So a subform does not need to know the name of the parent for to reference it
- you can pass a form (or subform) as an argument to a function:
Public afunction(aForm as form)
debug.print aFrom.someProperty
'etc
End Function
not sure if either help.
Edit: Oops sorry, I see ChrisO had already mentioned the parenting thing. My bad for not reading the thread.
Last edited: