This is a question about object hierarchy and syntax, which I have not quite succeeded in resolving.
I have a report, in the header of which I wish to insert the search criterion according to which it has been generated. I have created for this a label field named ‘Criterion’ in the page header area of the report. I have discovered how to open the report (‘oRept’) in design mode, but not how to address (and therefore modify) this label.
When I edit the report and open the report navigator, I see the hierarchy
Report
Page Header
Criterion
Label
But I am at a loss how to address this in the relevant macro. I had imagined something like
oSec = oRept."Page Header"
oField = oSec."Criterion"
oField.label = "...."
This doesn’t work; please help (if I have explained sufficiently clearly)!