zyus said:
My NPLFLG will consist of these 3 value
1. N
2. Y
3. null
null is equal to N.
null is NOT equal to Y
Null is neither equal to nor not equal to anything. Try the following in
the Immediate window ...
? Null = "N"
Null
? Null <> "Y"
Null
The NZ() expression can be used to convert a Null value to another
value. It takes an optional second argument which specifies the value
you want to be used to replace Null values. The following example will
replace Null values with the letter "N" ...
NZ([NPLFLG], "N")
NZ() is an Access function, it will work fine as long as your query is
used only within Access. If you think you may need to use your query
other than via Access, you can use the IIF() and IsNull() functions
instead ...
IIF(IsNull([NPLFLG]), "N", [NPLFLG])