The information in this article applies to:
SYMPTOMS
Moderate: Requires basic macro, coding, and interoperability skills.
CAUSEThe SetValue action was carried out after the report was opened. After the report is opened, it is too late to change the values for controls that appear on the first page. The SetValue action should be placed in a macro that is triggered from the Format event of the control's report section or the Activate event of the report. RESOLUTIONCreate a macro that contains the SetValue action and attach that macro to the Activate event of the report or the Format event of the control's report section. Then, the controls on the first page of the report will display the correct values. MORE INFORMATIONThe Activate event of the report occurs before the report's Format event. The Format event occurs when Microsoft Access determines which data belongs in a report section, but before the section is formatted for previewing or printing. Changes that affect the data that will be displayed in a report section should be placed in the Format event of that section or the Activate event of the report. Steps to Reproduce Behavior
REFERENCESFor more information about the order of events in reports, search the Help Index for "order of events," and then "Find out when events occur," or ask the Microsoft Access 97 Office Assistant.
Keywords : McrProb McrArg |
Last Reviewed: April 29, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |