ACC: No CanShrink Property for Check BoxesID: Q101677
|
Moderate: Requires basic macro, coding, and interoperability skills.
There is no CanShrink property for check boxes or option buttons on a form
or report.
The following workaround demonstrates a method that uses a text box to
simulate a check box on a report. Then, you can set the CanShrink property
of the text box to Yes, and if the text box is not checked, it will
shrink and will not be printed.
Name: txtCheck1
ControlSource: =IIf([Check1]=-1," X ")
CanShrink: Yes
BorderStyle (or BackStyle in Microsoft Access 7.0 and 97): Normal
CanShrink: Yes
OnFormat: ShrinkNo
Macro Name Condition Action
----------------------------------------
ShrinkNo [Check1]=-1 SetValue
[Check1]=0 SetValue
ShrinkNo Actions
----------------------------
SetValue
Item: [lblCheck1].Visible
Expression: True
SetValue
Item: [lblCheck1].Visible
Expression: False
For more information about the CanShrink Property, search the Help Index for "CanShrink property."
Additional query words: shrink can
Keywords : FmsHowto
Version : 1.0 1.1 2.0 7.0 97
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: March 25, 1999