Hi,
The question applies to Ms-Access 2003:
To change the caption on a subform's control using the indirect method, I do:
<<Forms(MyForm)(MySubForm)(MyControl).Caption = MyTable(MyControl)>>
where MyTable contains different captions. It works very well.
For reports, the following works well:
<<Reports(MyReport)(MyControl).Caption = MyTable(Mycontrol)>>
But for subreports, it does not work: When I do:
<<Reports(MyReport)(MySubReport)(MyControl).Caption = MyTable(Mycontrol)>>
I get the error message:
"Microsoft Office Access can't find the field 'MySubReport' referred to in your expression"
For some reason, it considers 'MySubReport' as a field instead of a subreport...
Any ideas anyone?
Thank you.
The question applies to Ms-Access 2003:
To change the caption on a subform's control using the indirect method, I do:
<<Forms(MyForm)(MySubForm)(MyControl).Caption = MyTable(MyControl)>>
where MyTable contains different captions. It works very well.
For reports, the following works well:
<<Reports(MyReport)(MyControl).Caption = MyTable(Mycontrol)>>
But for subreports, it does not work: When I do:
<<Reports(MyReport)(MySubReport)(MyControl).Caption = MyTable(Mycontrol)>>
I get the error message:
"Microsoft Office Access can't find the field 'MySubReport' referred to in your expression"
For some reason, it considers 'MySubReport' as a field instead of a subreport...
Any ideas anyone?
Thank you.