How to Conditionally Format a Numeric FieldID: Q104254 The information in this article applies to:
SUMMARYYou can create a field in the Expression Builder of a screen or a report to conditionally alter the formatting of a numeric field or variable. See below for more information.
MORE INFORMATIONTo conditionally alter the formatting of a field, you need to combine the IIF() function with the TRANSFORM() function. For example, suppose you have a table with the following field and records:
In your report, you want to display the values less than 1000 as plain
numbers, the values between 1000 and 100000 as currency with commas,
and the values greater than 1000000 as decimal fractions of a million
with an "M".
To do this, enter the following expression in the Expression Builder of a single field in the Detail band:
The results will appear as follows:
Additional reference words: FoxDos FoxWin 2.00 2.50 2.50a writer
multiformatted
multiple formats 2.50b 2.60
KBCategory: kbprg
KBSubcategory: FxtoolGeneral
|
|
Last Reviewed: June 27, 1995 © 1999 Microsoft Corporation. All rights reserved. Terms of Use. |