On a daily basis I process a batch of products. Each of the products in the batch always belongs to a product model. I would like to stop doing this manually and program Access to do if for me. Basically the product model is on the left most part of the product ID or SKU. I am presenting the following table so that there is a visual representation of my data and what I want to accomplish. I have a table with the product IDs or SKUs and I want to generate or identify the model number from the SKU. Basically I'm stripping the SKU from left to right until all digits within the SKU are equal. How do I do this in vba or via queries?
tbProducts | Outcome |
SKU | Model_Number |
D2336630000 | D233663 |
D233663320 | D233663 |
D23366332001 | D233663 |
D23366300001 | D233663 |
D2336633260 | D233663 |
Last edited by a moderator: