ACC2002: Run-Time Error Message When You Programmatically Set PaperSize Property (287473)
The information in this article applies to:
This article was previously published under Q287473 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).
SYMPTOMS
In Microsoft Access, when you use Microsoft Visual Basic for Applications (VBA) code to set the PaperSize property of a Generic / Text Only printer to acPRPSDSheet or acPRPSESheet while the report is open in Preview, you may receive the following error message
Runtime Error!
Program: path\MSACCESS.EXE
abnormal program termination
where path is the directory path to Microsoft Access on your computer -- for example, C:\Program Files\Microsoft Office\Office10.
CAUSE
This behavior occurs because the Generic / Text Only printer driver does not support D-size and E-size sheets.
RESOLUTION
To resolve this issue, select a printer driver that supports the paper size that you want to use.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbbug kberrmsg KB287473 |
---|
|