I have billing addresses that come in all kinds of formats. Basically, I'm supposed to move anything that resembles a secondary address (such as suite, floor, #, room, etc.) to the secondary address column. I can do an expression for one criteria at a time (eg. suite only), but can it be done in one expression to move more than one instance (suite and floor)?
Eg. data:
123 Whopping Loop Suite 1
123 Whopping Loop #6
123 Whopping Loop Drive
123 Whopping Loop Ste 4
Eg. of my code for those with # indicating a secondary addr:
IIf(InStr(1,Trim([GEORGIA3]![Billing Addr1])," #")>0,Right(Trim([GEORGIA3]![Billing Addr1]),Len(Trim([GEORGIA3]![Billing Addr1]))-InStr(1,[Billing Addr1]," #")),[GEORGIA3]![Billing Addr2])
Anyones help is greatly appreciated!
Eg. data:
123 Whopping Loop Suite 1
123 Whopping Loop #6
123 Whopping Loop Drive
123 Whopping Loop Ste 4
Eg. of my code for those with # indicating a secondary addr:
IIf(InStr(1,Trim([GEORGIA3]![Billing Addr1])," #")>0,Right(Trim([GEORGIA3]![Billing Addr1]),Len(Trim([GEORGIA3]![Billing Addr1]))-InStr(1,[Billing Addr1]," #")),[GEORGIA3]![Billing Addr2])
Anyones help is greatly appreciated!