Valores nulos

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How to get datas with value zero in a consult?
I tried the following but I couldn't use it.
=IIf(Énulo([nomedocampo]),"Desconhecido",Format([nomedocampo],"@;\ZLS")). The
program returned "error or improper use of coma..."
 
The syntax of IIf is this:

IIf(expr, truepart, falsepart)

This has three parts, separated by two commas. Your statement has four
parts, separated by three commas.
 
How to get datas with value zero in a consult?
I tried the following but I couldn't use it.
=IIf(Énulo([nomedocampo]),"Desconhecido",Format([nomedocampo],"@;\ZLS")). The
program returned "error or improper use of coma..."

I'm not sure (I don't have the Spanish language version of Access),
but I suspect you need to either consistantly use ; or ,:

=IIf(Énulo([nomedocampo]);"Desconhecido";Format([nomedocampo],"@;\ZLS"))

or

=IIf(Énulo([nomedocampo]),"Desconhecido",Format([nomedocampo],"@,\ZLS"))


John W. Vinson[MVP]
 

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