Link to home
Start Free TrialLog in
Avatar of Vinez
VinezFlag for United States of America

asked on

MS ACCESS Query, IF Statement in Calculated Field

In my query I need to write an IF statement.  Basically, in a new calculated field I need to do the following:

IF [Status]="V" then "-" else Null

How do I write this correctly in Query expression.
ASKER CERTIFIED SOLUTION
Avatar of Jim Horn
Jim Horn
Flag of United States of America 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 zx10r
zx10r

IIF([Field1]
Avatar of Vinez

ASKER

Perfect!  Thanks!  I didn't need the ending "as YourColumnNameHere"
Avatar of Vinez

ASKER

thanks zx10r.  I just accepted jimhorn.  That worked better since it was for a text field.
Thanks for the grade.  Good luck with your project.  -Jim