ACC: Incorrect PrtMip Example in Help (158924)
The information in this article applies to:
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
This article was previously published under Q158924
Moderate: Requires basic macro, coding, and interoperability skills.
SYMPTOMS
When you use the "PrtMip Property" example in Help, you may receive the
following error message in Microsoft Access 7.0:
The setting you entered isn't valid for this property
In Microsoft Access 7.0 and 97, the SetMarginsToDefault() sample procedure
does not cause an error, but it does not produce the documented results.
CAUSE
The Help example contains errors in the declarations of the two Type
statements required for this procedure to work.
RESOLUTION
Use the following as the Type statements in the Declarations section of
your module instead of what is in the Help example:
Type str_PRTMIP
RGB As String * 28
End Type
Type type_PRTMIP
xLeftMargin As Long
yTopMargin As Long
xRightMargin As Long
yBotMargin As Long
fDataOnly As Long
xWidth As Long
yHeight As Long
fDefaultSize As Long
cxColumns As Long
yColumnSpacing As Long
xRowSpacing As Long
rItemLayout As Long
fFastPrint As Long
fDatasheet As Long
End Type
Modification Type: | Major | Last Reviewed: | 10/20/2003 |
---|
Keywords: | kberrmsg KB158924 |
---|
|