I
ian
I'm using MSAccess 2003 and this seems like a simple process, especially
compared to some of the things I'm trying to do in my database. In the
criteria of a query field, I am using the following IIf statement:
IIf([FYAGR]>3000000,3,<4)
[FYAGR] is a different field in the same query. When [FYAGR] is greater
than 3,000,000, I get 3 as expected, but no matter how I word the range of
numbers I'm looking for in the false part of the statement, my query returns
no records. If I remove the IIf statement and place '<4' I get the correct
range, but no matter the combination I can't seem to get the desired criteria
out of the IIf statement. I can also place a single digit in my false part
and return that digit with no problems. Is this a limitation of the IIf
statement that I am unaware of? Maybe there is something simple I'm missing,
but any help would be appreciated.
compared to some of the things I'm trying to do in my database. In the
criteria of a query field, I am using the following IIf statement:
IIf([FYAGR]>3000000,3,<4)
[FYAGR] is a different field in the same query. When [FYAGR] is greater
than 3,000,000, I get 3 as expected, but no matter how I word the range of
numbers I'm looking for in the false part of the statement, my query returns
no records. If I remove the IIf statement and place '<4' I get the correct
range, but no matter the combination I can't seem to get the desired criteria
out of the IIf statement. I can also place a single digit in my false part
and return that digit with no problems. Is this a limitation of the IIf
statement that I am unaware of? Maybe there is something simple I'm missing,
but any help would be appreciated.