Control in Page Header (1 Viewer)

bbulla

I'd rather be golfing
Local time
Today, 03:37
Joined
Feb 11, 2005
Messages
101
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

Well-known member
Local time
Today, 02:37
Joined
Mar 6, 2006
Messages
4,357
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.
 

Users who are viewing this thread

Top Bottom