G
Guest
I have a table with sales history records. As usual we are constantly
changing product codes so I frequently need to consolidate the sales history
from an old item to a new item for forecasting purposes. I don't want to use
'find & replace' because if I refresh the sales history download my changes
will be lost.
I have a table which has three fields - OldItem; NewItem; Loc.
If I only had to deal with the Item, it would be easy with a join. However,
I am importing the table data from another application and some of the item
substitutions are global and some are location specific. Where the change is
global the Loc field is blank and if it is applicable to only 1 location, it
contains the location code.
I know I will probably be told that the data should be normalised and there
should be 1 record for every item/location record rather than just "blank" in
the Loc field for global changes, but I can't change that and I don't want to
have to turn 500 entries into 3000 manually.
Can I use a wildcard or IIf statement to solve this somehow ?
changing product codes so I frequently need to consolidate the sales history
from an old item to a new item for forecasting purposes. I don't want to use
'find & replace' because if I refresh the sales history download my changes
will be lost.
I have a table which has three fields - OldItem; NewItem; Loc.
If I only had to deal with the Item, it would be easy with a join. However,
I am importing the table data from another application and some of the item
substitutions are global and some are location specific. Where the change is
global the Loc field is blank and if it is applicable to only 1 location, it
contains the location code.
I know I will probably be told that the data should be normalised and there
should be 1 record for every item/location record rather than just "blank" in
the Loc field for global changes, but I can't change that and I don't want to
have to turn 500 entries into 3000 manually.
Can I use a wildcard or IIf statement to solve this somehow ?