ACC: Formatting Immediate IF (IIF) Statements in ReportsLast reviewed: May 28, 1997Article ID: Q106184 |
The information in this article applies to:
SYMPTOMSModerate: Requires basic macro, coding, and interoperability skills. If a report that is based on a query contains a field that includes a null value from an Immediate If (IIf) statement, you will not be able to format the field properly on the report.
RESOLUTIONThere are two ways to work around this behavior. The first method is to format the IIf expression in the query. You can add a format statement to the beginning of the IIf statement. For example, the following statement would add formatting to the field:
Format(IIF([freight] = 32.07,[freight],null),"$0.00")The second method is to use the IIf statement on the report directly, and not in the query. For example, you could add the following statement to the ControlSource property of the expression field's text box:
=Format(IIF([freight]=32.07,[freight],null),"$0.00") STATUSThis behavior no longer occurs in Microsoft Access version 7.0.
MORE INFORMATION
Steps to Reproduce Behavior
|
Keywords : GnlFrmt kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |