Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

if expression 1

Status
Not open for further replies.

ocan

Programmer
Jun 28, 2004
31
0
0
US
I have a query, the query includes 2 fields: Actual Ship Date and Requested Ship Date and I am trying to build an "If" expression to create another field.

Expr1: IIf([Actual Ship Date]=Null,[Requested Ship Date],[Actual Ship Date])

The above expression is doing the false part, but not the true part. Can someone give any insight?
 
Either:
Expr1: IIf([Actual Ship Date] Is Null,[Requested Ship Date],[Actual Ship Date])
Or:
Expr1: Nz([Actual Ship Date],[Requested Ship Date])

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Perfect. Thank you very much.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top