Re: iif statement
From: Wayne Morgan (comprev_gothroughthenewsgroup_at_hotmail.com)
Date: 02/19/05
- Next message: MGFoster: "Re: Sub script out of range"
- Previous message: Barry-Jon: "Re: Queries/Forms not working"
- In reply to: Joel Allen: "Re: iif statement"
- Next in thread: Jeff Boyce: "Re: iif statement"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 19 Feb 2005 15:03:25 -0600
Yes, that makes more sense.
Example:
IIf([DrawingStage]="New" And [JobValue]>1000.0,[JobInitiatedDate],
IIF ([DrawingStage]="Shipped" And [JobValue]>1000.0,[ShippedDate],
IIF ([DrawingStage]="Cancelled",[CancelledDate],
IIF ([DrawingStage]="Released",[ReleasedDate],
))))
If your logic is more complicated, we'll need the entire possible scenario
list to help further.
-- Wayne Morgan MS Access MVP "Joel Allen" <joelallen123@verizon.net> wrote in message news:pFNRd.32745$wc.31359@trnddc07... > Whoops, I misphrased my example. Ok let's say I want both of these to be > true..... > > if DrawingStage = New and JobValue > 1000.0 then output the > JobInitiatedDate. > > I hope that makes sense. I'm just having trouble with the syntax in an > IIF statement.
- Next message: MGFoster: "Re: Sub script out of range"
- Previous message: Barry-Jon: "Re: Queries/Forms not working"
- In reply to: Joel Allen: "Re: iif statement"
- Next in thread: Jeff Boyce: "Re: iif statement"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|