Vinez
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.
IF [Status]="V" then "-" else Null
How do I write this correctly in Query expression.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
IIF([Field1]
ASKER
Perfect! Thanks! I didn't need the ending "as YourColumnNameHere"
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