K
Keith
First of all I want to say thanks in advance for your help.
Ok, I have a query that pulls information from an ODBC Connection and a field that gets information from an expression.
InPack: Trim("30085455"+[Expr1])
AND
Expr1: IIf(Left([PO2_PurchaseOrderEntryLine.ItemNumber],2)="DI",Right(Trim([PO2_PurchaseOrderEntryLine.ItemNumber]),5),[PO2_PurchaseOrderEntryLine.ItemNumber])
I need to know how to edit Expr1 to include the following ......
ItemNumber starts with ..... DI-, R (Extract last 5 numbers)
And
ItemNumber Ends with (27 Items in this list) IE: -DI, -1, -2, -3, -SMR, -WNG, -5919A, etc....(Extract first 5 numbers)
In other words:
ItemNumber = DI-12345 Expr1=12345
ItemNumber = R54321 Expr1=54321
ItemNumber = 12345-1 Expr1=12345
ItemNumber = 13579-SMR Expr1=13579
ItemNumber = 98765-WNG Expr1=98765
ItemNumber = 85214-591A Expr1=12345
Etc.......
Can anyone help me with this
I hope this makes sense.
Thanks,
Keith
Ok, I have a query that pulls information from an ODBC Connection and a field that gets information from an expression.
InPack: Trim("30085455"+[Expr1])
AND
Expr1: IIf(Left([PO2_PurchaseOrderEntryLine.ItemNumber],2)="DI",Right(Trim([PO2_PurchaseOrderEntryLine.ItemNumber]),5),[PO2_PurchaseOrderEntryLine.ItemNumber])
I need to know how to edit Expr1 to include the following ......
ItemNumber starts with ..... DI-, R (Extract last 5 numbers)
And
ItemNumber Ends with (27 Items in this list) IE: -DI, -1, -2, -3, -SMR, -WNG, -5919A, etc....(Extract first 5 numbers)
In other words:
ItemNumber = DI-12345 Expr1=12345
ItemNumber = R54321 Expr1=54321
ItemNumber = 12345-1 Expr1=12345
ItemNumber = 13579-SMR Expr1=13579
ItemNumber = 98765-WNG Expr1=98765
ItemNumber = 85214-591A Expr1=12345
Etc.......
Can anyone help me with this
I hope this makes sense.
Thanks,
Keith