K
KarenY
Hi,
I have multiple columns with 2x as: [CO] and [SHIPTO1],
some COs have ship-to code, some are blank, I have to update the blank ones
with a SHIPTO code. the order-prefix is the indication for the ship-to code,
e.g. CO# A-DXB12345 = L1200A, AP-DXB12346=1200AP, C-DXB12347=L1200C,
D-DXB12348=L1200D, etc. etc. (about thousand records)
I just know the simple one.
eg.: SHIPTO: IIf(Left([CO],2)="AP","1200AP"," ")
THEN I have left the other blanks as "blank".
Also I have already got some SHIPTO in the SHIPTO1.
Is it possible for me to update all the ship-to codes with one IIF ?
I have tried so many ways including SWITCH but not worked out, please help :
My wrong function and other wrong ones too, but listed herebelow one only:
SHIPTO :
IIF(Left([CO],1)="A","L1200A",Left([CO],1)="C","L1200C",Left([CO],1)="D","L1200D",Left([CO],1)="E","L1200E",Left([CO],1)="L","L1200L",Left([CO],1)="P","L1200P")
then how do I leave the existing one in the SHIPTO1 ?
I am completely lost !
Appreciate your help very much,
I am using 2003 Access.
karen
UPDshipto:
I have multiple columns with 2x as: [CO] and [SHIPTO1],
some COs have ship-to code, some are blank, I have to update the blank ones
with a SHIPTO code. the order-prefix is the indication for the ship-to code,
e.g. CO# A-DXB12345 = L1200A, AP-DXB12346=1200AP, C-DXB12347=L1200C,
D-DXB12348=L1200D, etc. etc. (about thousand records)
I just know the simple one.
eg.: SHIPTO: IIf(Left([CO],2)="AP","1200AP"," ")
THEN I have left the other blanks as "blank".
Also I have already got some SHIPTO in the SHIPTO1.
Is it possible for me to update all the ship-to codes with one IIF ?
I have tried so many ways including SWITCH but not worked out, please help :
My wrong function and other wrong ones too, but listed herebelow one only:
SHIPTO :
IIF(Left([CO],1)="A","L1200A",Left([CO],1)="C","L1200C",Left([CO],1)="D","L1200D",Left([CO],1)="E","L1200E",Left([CO],1)="L","L1200L",Left([CO],1)="P","L1200P")
then how do I leave the existing one in the SHIPTO1 ?
I am completely lost !
Appreciate your help very much,
I am using 2003 Access.
karen
UPDshipto: