![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
This probably cannot be done, but I thought I would ask anyhow. *I have a subreport in which I wish to assign the controlsource of several controls dynamically at runtime. The first time the controlsource is assigned in report_open() of the subreport, everything works fine. *However, if I try to reassign the controlsource a second time, I receive the following error: "You can't set the Record Source property in print preview or after printing has started." But, I want to reassign the controlsource, as the controls in question may need to be reassigned to a different field for each page of the report. I just want to know if this is possible. *Thanks. Vincent |
#3
| |||
| |||
|
|
On Jul 30, 9:17*am, Vincent <animedrea... (AT) verizon (DOT) net> wrote: This probably cannot be done, but I thought I would ask anyhow. *I have a subreport in which I wish to assign the controlsource of several controls dynamically at runtime. The first time the controlsource is assigned in report_open() of the subreport, everything works fine. *However, if I try to reassign the controlsource a second time, I receive the following error: "You can't set the Record Source property in print preview or after printing has started." But, I want to reassign the controlsource, as the controls in question may need to be reassigned to a different field for each page of the report. I just want to know if this is possible. *Thanks. Vincent you could create multiple controls, each with their controlsource and hide/display the controls you need/want on each page |
#4
| |||
| |||
|
|
On Jul 30, 11:21 am, Roger <lesperan... (AT) natpro (DOT) com> wrote: On Jul 30, 9:17 am, Vincent <animedrea... (AT) verizon (DOT) net> wrote: This probably cannot be done, but I thought I would ask anyhow. I have a subreport in which I wish to assign the controlsource of several controls dynamically at runtime. The first time the controlsource is assigned in report_open() of the subreport, everything works fine. However, if I try to reassign the controlsource a second time, I receive the following error: "You can't set the Record Source property in print preview or after printing has started." But, I want to reassign the controlsource, as the controls in question may need to be reassigned to a different field for each page of the report. I just want to know if this is possible. Thanks. Vincent you could create multiple controls, each with their controlsource and hide/display the controls you need/want on each page Well, normally that would work. But, to complicate matters, I do not know the name of the fields until runtime. Vincent |
![]() |
| Thread Tools | |
| Display Modes | |
| |