Kash said:
Hi Randy,
This is real helpful. I have another question for you. Below is how I am
using the code you gave me:
NewField: IIf(nz([Change],"new")="new"," ",[Change])
I am asking it to give me a "blank" value whenever it encounters a "new"
value. But how should I change the code to give me a "blank" value when it
encounters multiple values either "new" or "title" (these are the only two
possible values)...... please advise!!!!...
Kash, glad all it's working. To handle multiple cases you can either use
nested IIFs or use the OR operator. I'll use OR since it is easier for you
to read and understand. Both of the functions below will modify the output
of the "Change" field to a space (" ") when its value is any of the
followings: "new", "title", "" (empty), or Null. Otherwise the field is left
intact. I don't know if you also want to handle the case when the field is
as space (" ") itself (well, let me know).
This function is case aware:
NewField: IIF( (NZ([Change],"new") = "new" ) OR (NZ([Change],"title") =
"title" ), " ", [Change])
This other function works for either upper or lower cases:
NewField: IIF( (LCASE(NZ([Change],"new")) = "new" ) OR
(LCASE(NZ([Change],"title")) = "title" ), " ", [Change])
-Randy