G
Guest
I would like to create a report that dynamically creates the column heading
and sets the controlsource of detail fields. This works fine if you use the
report_open event to set these values.
However, I would like to change the column headings and controlsource on a
break in a field I'm calling area (which will cause a page break). However,
if I try to make the change using the format event of the area group I get an
error that controlsource cannot be set. It appears controlsource may only be
set in the report_open event.
Is there a workaround for this problem? I've not worked with subreports
before, but perhaps I could use subreports to allow me to set the
controlsource multiple times within the same report. However, I also want to
be able to change the report title (or perhaps move the report title to the
page heading section), from within the subreport. Is any of this possible?
I will appreciate any help you can provide. Thanks.
and sets the controlsource of detail fields. This works fine if you use the
report_open event to set these values.
However, I would like to change the column headings and controlsource on a
break in a field I'm calling area (which will cause a page break). However,
if I try to make the change using the format event of the area group I get an
error that controlsource cannot be set. It appears controlsource may only be
set in the report_open event.
Is there a workaround for this problem? I've not worked with subreports
before, but perhaps I could use subreports to allow me to set the
controlsource multiple times within the same report. However, I also want to
be able to change the report title (or perhaps move the report title to the
page heading section), from within the subreport. Is any of this possible?
I will appreciate any help you can provide. Thanks.