Cotswold
Well-known member
- Local time
- Today, 11:32
- Joined
- Dec 31, 2020
- Messages
- 925
I have a report and I wanted to fill fields in the Header before printing using various DLookup() operations and other calculated fields. These are all in the Report Load().
If I run the report by double-clicking, or run it with DoCmd.OpenReport "R34_Test", acViewPreview it is fine.
However, if I run it to the printer with Docmd.OpenReport "R34_Test", acViewNormal the fields in the header do not show content.
Irritatingly I cannot see why. Just wondering if anyone out there knows why.
I attach a database with a simplified Report and Form to run the report as an example.
If I run the report by double-clicking, or run it with DoCmd.OpenReport "R34_Test", acViewPreview it is fine.
However, if I run it to the printer with Docmd.OpenReport "R34_Test", acViewNormal the fields in the header do not show content.
Irritatingly I cannot see why. Just wondering if anyone out there knows why.
I attach a database with a simplified Report and Form to run the report as an example.