Hi
TerryFS,
you had mentioned that ," I do not get an error but I don't get any useful data returned"
can you show us what is should be return and what you got actually?
as other community members had already suggested you the syntax you can try to refer.
for further reference you can refer table below.
To refer to a subform control property, like SourceObject |
|
|
On Mainform |
N/A |
N/A |
On Sub 1 |
Me!Subform1.SourceObject |
N/A |
On Sub 2 |
Me!Subform1.Form!Subform2.SourceObject |
Me!Subform2.SourceObject |
Regards
Deepak
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to
MSDN Support, feel free to contact MSDNFSF@microsoft.com.