BUG: Report Preview with Form's Name Clears Object ReferenceLast reviewed: April 25, 1997Article ID: Q155463 |
The information in this article applies to:
SYMPTOMSIssuing a REPORT FORM PREVIEW command on a report that has the same file name as a form that is running causes the form to lose its object reference. If you attempt to reference the form object in code, this error message appears:
Object not found WORKAROUNDIf you have a form called Customer and issue the following command, an object reference named Customer is created for the form:
DO FORM CustomerPreview a report named Customer by issuing the following command:
REPORT FORM Customer PREVIEWThe customer object now references the Report Preview window. When the Report Preview window is closed, the customer object is released. Work around this problem by giving your forms a different object reference than the reports with the same name. Do this by using the NAME clause in the DO FORM command. For example, to give the Customer Form an object reference of Custform, you would issue the following command:
DO FORM Customer NAME Custform STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONSteps to Reproduce Problem
|
KBCategory: kbprg kbother kbdisplay kbbuglist
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |