The information in this article applies to:
Moderate: Requires basic macro, coding, and interoperability skills. SYMPTOMSWhen you use the OutputTo method in Visual Basic for Applications to output a form or report module to a text file, you may receive the following error message:
CAUSEYou cannot use the OutputTo method in Visual Basic for Applications to output form or report modules. Form or report modules are class modules that contain code that is local to the form or report. They do not appear in the Database window as standard modules do. You can only output modules that appear in the Database window with the OutputTo method. RESOLUTION
When you use the OutputTo method, only output standard modules and class modules that are not associated with any form or report.
MORE INFORMATIONThe "OutputTo" topic in Microsoft Access Help states that you can output a module to a file in MS-DOS Text format. However online Help does not say which type of class modules can be output to a file. The only class modules that you can output are those that appear in the Database window. Steps to Reproduce Behavior
REFERENCESFor more information about the OutputTo method, click Microsoft Access Help on the
Help menu, type "OutputTo Method" in the Office Assistant or the Answer Wizard,
and then click Search to view the topics returned. Additional query words:
Keywords : kberrmsg kbprg |
Last Reviewed: May 13, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |