ACC2: Code Called from OnFormat Creates Endless Formatting (113929)
The information in this article applies to:
This article was previously published under Q113929
Moderate: Requires basic macro, coding, and interoperability skills.
SYMPTOMS
A report that calls code from its OnFormat property may never finish
formatting and may become stuck in an internal page formatting loop. This
problem may be more common in databases that have been converted from
Microsoft Access version 1.x to version 2.0.
RESOLUTION
Press CTRL+BREAK to break the internal processing loop.
With the addition of two-pass formatting for reports in Microsoft Access
version 2.0, events previously called from the OnFormat property may need
to be called from the OnPrint property instead. Or, use the KeepTogether
property in the report's Sorting And Grouping dialog box to keep groups of
records together.
Note that the sample code in the "Steps to Reproduce Problem" section later
in this article is similar to the sample code in article 100920, "How to
Avoid Abandoned Group Headers in Reports."
STATUS
Microsoft has confirmed this to be a problem in Microsoft Access version
2.0. This problem no longer occurs in Microsoft Access version 7.0.
Modification Type: | Major | Last Reviewed: | 7/8/2002 |
---|
Keywords: | kbbug kbusage KB113929 |
---|
|