Two IIF statements in a text box?

R

Randy

Is it possible to have two IIf statements in an expression?
I have 3 textboxes on my form: [BeginCertNolbl], [EndCertNolbl] and
[Count]. Here is my expression in [Count] Thanks..Randy

=IIf([BeginCertNolbl] Is Null,"0"-1,[EndCertNolbl]-[BeginCertNolbl])+1
I also need something like this in my present expression.

=IIF([EndCertNolbl] Is Null,=[BeginCertNolbl],IIf([BeginCertNolbl] Is
Null,"0"-1,[EndCertNolbl]-[BeginCertNolbl])+1
 
F

fredg

Is it possible to have two IIf statements in an expression?
I have 3 textboxes on my form: [BeginCertNolbl], [EndCertNolbl] and
[Count]. Here is my expression in [Count] Thanks..Randy

=IIf([BeginCertNolbl] Is Null,"0"-1,[EndCertNolbl]-[BeginCertNolbl])+1
I also need something like this in my present expression.

=IIF([EndCertNolbl] Is Null,=[BeginCertNolbl],IIf([BeginCertNolbl] Is
Null,"0"-1,[EndCertNolbl]-[BeginCertNolbl])+1

The basic syntax is like this:
=IIf([SomeField] = criteria,True value,IIf([OtherField]= other
criteria,OtherTrue Value,FalseValue))
 

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

Similar Threads


Top