G
Gary F Shelton
I am trying to write a query to help me identify if a sku is discontinued.
The text field from our mainframe comes across as:
1. HAR 4/2.5 BATTERED CHEDDAR CRISPS
2. (D)GNR 8/2 3/16" BATTERED ONION RINGS
3. (D1)DMN 1/8 SPRINGROLL - CHICKEN
4. (D2)MCX 9/2.5 BBAT ONI HOT SCOOPERS
5. (DD)MCX 10/1kg BATTERED ONION RINGS
The statement I wrote is:
Active_Inactive: IIf(Left(Trim([Product
Description]),3)="(D)","D",="(D1","D1",="(D2","D2",="(DD","DD","Active")
As you can imagine I got an error.
The text field from our mainframe comes across as:
1. HAR 4/2.5 BATTERED CHEDDAR CRISPS
2. (D)GNR 8/2 3/16" BATTERED ONION RINGS
3. (D1)DMN 1/8 SPRINGROLL - CHICKEN
4. (D2)MCX 9/2.5 BBAT ONI HOT SCOOPERS
5. (DD)MCX 10/1kg BATTERED ONION RINGS
The statement I wrote is:
Active_Inactive: IIf(Left(Trim([Product
Description]),3)="(D)","D",="(D1","D1",="(D2","D2",="(DD","DD","Active")
As you can imagine I got an error.