ACC: How to Use the IIf() (Immediate If) FunctionID: Q106288
|
Moderate: Requires basic macro, coding, and interoperability skills.
You may receive unexpected results when you use the IIf() (Immediate
If) function to evaluate an expression. Your results will depend on the use
of double quotation marks in the function's arguments.
The following example demonstrates how the use of double quotation marks in
the IIf() function's arguments can affect the results:
Query: Test
---------------------------------------
Field Name: Sum(IIf("[Freight]>50",1,0))
Query: Test
-------------------------------------
Field Name: Sum(IIf([Freight]>50,1,0))
For more information about the IIf function, search for "IIf function," and then "IIf Function" using the Microsoft Access 97 Help Index.
Keywords : kbusage ExrOthr
Version : 1.0 1.1 2.0 7.0 97
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: March 27, 1999