If then AND statements in access

  • Thread starter Thread starter Sarah
  • Start date Start date
S

Sarah

I am trying to convert this excel IF statement into access.

=IF(A2<-10,"OK",IF(AND(A2<-5,B2="Y"),"OK","Not OK"))


How would I write this in access?
 
=Iif(intVarA2<-10 OR (intVarA2<-5 And strVarB2="Y"),"OK","Not OK")

Do you still need to refer to the Excel cells or are you replacing with VBA
variables?
 
Back
Top