No return on false argmument in iif/left statement

crjackson

New member
Local time
Yesterday, 19:10
Joined
Dec 18, 2012
Messages
4
I'm a self taught novice so I'm really not sure what I'm doing wrong. Any suggestions are welcome. I'm trying to derive the month in digits from a date/time stamp field. Any month between 10 and 12, I need the first 2 digits but anything <=9 is only 1 digit.

MONTH: IIf(Left([LOAD TO SKU LEVEL DETAIL]![PICK_PLAN_TS],2)="10" Or "11" Or "12",(Left([LOAD TO SKU LEVEL DETAIL]![PICK_PLAN_TS],2),(Left([LOAD TO SKU LEVEL DETAIL]![PICK_PLAN_TS],1))))
 
If it's a date/time field, you can just use the Month() function.
 

Users who are viewing this thread

Back
Top Bottom