Fix Access Report Header Field Not Displaying in Preview
Question details
An unbound field in a Microsoft Access report header does not display in the normal preview mode.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- A user is previewing an Access report after assigning an unbound field and modifying the OrderBy and Filter properties during the report's On Load event.
- Observed behavior
- The unbound field populated during the On Load event appears successfully while debugging but fails to render in the normal report preview output.
Verify which event properties, such as On Load or On Format, currently contain the VBA logic for your unbound fields, sorting, and filtering operations.
Pass Filter and Sort Parameters via DoCmd.OpenReport
Move the OrderBy and Filter property changes from the report's On Load event to the calling form to ensure the report renders properly.
Changing sorting and filtering logic directly inside a report's On Load event can interrupt the rendering cycle, causing unbound fields to disappear in the preview window. The best practice is to pass these values when calling the report.
Open your Microsoft Access database, navigate to the calling form in Design View, and open the VBA code or macro associated with the button that opens the report.
Open the report in Design View, navigate to the Event tab in the Property Sheet, and remove the OrderBy and Filter assignments from the On Load event.
In the calling form's VBA code, pass your sorting and filtering values directly through the WhereCondition or OpenArgs parameters of the DoCmd.OpenReport method.

Populate the Field in the On Format Event
If passing parameters via the calling form doesn't apply, populate the field during the section's On Format event, which is more reliable for output rendering.
Switch to WPS Office for a Seamless, Lightweight Experience
While Microsoft Access is built for complex database management, your everyday document, spreadsheet, and presentation needs can be handled much more efficiently with WPS Office. It's a free, lightweight suite that fully supports Microsoft Office formats and provides a familiar user interface to maximize your productivity.
- 1. Download WPS Office: Visit the official WPS website and download the free installation package tailored for your operating system.
- 2. Install the Software: Run the installer and follow the simple on-screen instructions to complete the setup process in seconds.
- 3. Open Office Files Seamlessly: Launch WPS Office and directly open your existing Word, Excel, or PowerPoint files without losing any of your original formatting.

Frequently Asked Questions
Why do unbound fields show up in Access debug mode but not in preview?
During debugging, the report's rendering sequence pauses, giving the system time to display fields populated in the On Load event. In normal preview, modifying properties like OrderBy and Filter simultaneously interrupts the rendering cycle, causing the field to remain blank.
What is the difference between On Load and On Format in Access reports?
The On Load event triggers once when the report is first opened but before the layout is finalized. The On Format event triggers for each section as Access processes the layout for printing or previewing, making it the most reliable place to assign dynamic unbound values.
Can I use macros instead of VBA to pass report filters?
Yes, you can use the OpenReport macro action. It provides dedicated fields for the 'Where Condition' and 'Filter Name' arguments, allowing you to pass filter parameters smoothly without needing to write any VBA code.




