Iif statement is erroring

  • Thread starter Thread starter MeSteve
  • Start date Start date
M

MeSteve

=IIf([Completed]=-1,[ClosedName],[ProjectNameShort])

Works if true, errors if false. The field exists in the source query and is
spelled correctly. What am I missing?
 
If completed, closedname, and projectnameshort are text you need to put them
in quotes. ["completed"], etc
 
=IIf([Completed]=-1,[ClosedName],[ProjectNameShort])

Works if true, errors if false. The field exists in the source query and is
spelled correctly. What am I missing?

What's the datatype of [Completed]? Might it be NULL? What's the context -
where are you using this expression? What error are you getting? Help please!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top