lookup code in MS access table + insert new code?
Posted on 2011-09-02
Is it possible to search an MS Access 2003 table and lookup a particular code within a particular field, and if that code is found in the field then to insert a code into another field.
For example I would like to search a field named: “COM_PRICE_REFERENCE” for the code: “OLDW11” and anywhere in the table where that code is used then the new code “NEWK22” is inserted into a field named: “CardCode”
I know I could just use the search tool but there’s quite a number of records I need to do this for with different codes so would take a long time to do this manually.
I currently have a separate access table with the Old and new codes I need to use so thought maybe theres a way of doing a lookup using a macros perhaps to insert the relevant data
Any help would be great.