Link to home
Start Free TrialLog in
Avatar of Serena2345
Serena2345Flag for United States of America

asked on

=IIF Query

I am trying to us this in an update Access query =IIF(LEN( [PRWBBEPI]![FILE #] =3,"000"& [PRWBBEPI]![FILE #] ,IIF(LEN( [PRWBBEPI]![FILE #] =4,"00"& [PRWBBEPI]![FILE #] ,
IIF(LEN( [PRWBBEPI]![FILE #] =5,"0" & [PRWBBEPI]![FILE #] , [PRWBBEPI]![FILE #])
It keeps telling me wrong # of arguments Can anyone see where I went wrong
Avatar of Kelvin Sparks
Kelvin Sparks
Flag of New Zealand image

Try this

=IIF(LEN( [PRWBBEPI]![FILE #]) =3,"000"& [PRWBBEPI]![FILE #] ,IIF(LEN( [PRWBBEPI]![FILE #]) =4,"00"& [PRWBBEPI]![FILE #] ,
IIF(LEN( [PRWBBEPI]![FILE #]) =5,"0" & [PRWBBEPI]![FILE #] , [PRWBBEPI]![FILE #])))

Kelvin
ASKER CERTIFIED SOLUTION
Avatar of als315
als315
Flag of Russian Federation image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Serena2345

ASKER

great thanks