View Full Version : Control in Page Header


bbulla
10-14-2009, 11:50 AM
Hi,

I have a control in the Page Header that I need to change based on what shows up in the Detail section of the report.

In the Detail_Format event I cannot seem to modify this control (a label) that sits in the Page Header. But....if I move the control into the Detail section, I can then change it's .Caption property to what I want.

If I move it back into the Page Header, then my code doesn't work.

Any ideas?? Here is the line of code that sits in the Detail_Format section.

lblTest.Caption = DESCR

HiTechCoach
10-14-2009, 01:55 PM
The answer is, that you can not do what you want. Why you ask? The page header has already been generated before the detail section prints.

Have you tried adding another control to the page header that is bound to the same field as the one in the detail section. You can have multiple controls all bound to the field (same control course). Maybe try copy and pasting the control from the detail section to the page header section.