If statements

  • Thread starter Thread starter theresa
  • Start date Start date
T

theresa

I volunteer for a non-profit service agency.

Is there a way to do an If calculation in a querie?

for example: if field(length of participation) is =1 then
insert the number 2 in this field. if field(length of
participation) is >1 then insert the number 4 in this
field if field(length of participation) is <1 leave it
blank.

I know in Excel that you only get 2 choices unless you
embed an if statement into the if statement.

=If(a1=1,2,if(a1<1,0,4))

thanks for your help

Theresa
 
NewColumn:IIf([LengthOfPart]=1,2,IIf([LengthOfPart]>1,4,Null))
 

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