No return on false argmument in iif/left statement (1 Viewer)

crjackson

New member
Local time
Today, 01:07
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))))
 

pbaldy

Wino Moderator
Staff member
Local time
Yesterday, 22:07
Joined
Aug 30, 2003
Messages
36,140
If it's a date/time field, you can just use the Month() function.
 

Users who are viewing this thread

Top Bottom