Solved Peg header code not invoked (1 Viewer)

PaquettePaul

Member
Local time
Today, 05:19
Joined
Mar 28, 2022
Messages
107
Quick question. I have code in my report page header that fills in some fields. However, this section of code does not get invoked. I tried with the debug pointer on and nothing happens. Been a while, but there does not appear to be anything on the report that says there is an event procedure for page header. Any ideas?
 

June7

AWF VIP
Local time
Today, 01:19
Joined
Mar 9, 2014
Messages
5,468
There certainly are events for page header. Exactly where have you placed this code? What is the code?
 

PaquettePaul

Member
Local time
Today, 05:19
Joined
Mar 28, 2022
Messages
107
Even with a msg box command or a debug checkpoint, the code never gets executed
 

Attachments

  • image.jpg
    image.jpg
    4.8 MB · Views: 181

PaquettePaul

Member
Local time
Today, 05:19
Joined
Mar 28, 2022
Messages
107
I have used this approach in the past with no problem. I started with a new report design and I cannot get the code to execute.
 

June7

AWF VIP
Local time
Today, 01:19
Joined
Mar 9, 2014
Messages
5,468
Should copy/paste code into post. Images can be hard to read and code cannot be copy/pasted.

Format event only executes for PrintPreview or direct to printer, not ReportView.

Could have expression in textbox that references form control.

And other textbox can reference a public function that returns value of global variable or use TempVars which can be referenced directly in ControlSource.
 

PaquettePaul

Member
Local time
Today, 05:19
Joined
Mar 28, 2022
Messages
107
Forgot so much after 12 years. I needed to be in the page section to look at the properties for that section.
Another well duh moment
 

Users who are viewing this thread

Top Bottom