Hello lameid and thanks for the reply. The problem with posting the sql here is there would need to be 70+ queries from the 2nd column and probably a lot more for the 3rd. Then for each query there has to be a different value replaced.
I'll need a form first to enter the data to search for and to enter the data to change. I'll do my best but I'm not sure if I can even do this correctly.
If I explain a little more it may help, the items table has about 35 thousand entries. 3 columns represent a tree category system. But the MySQL DB has a separate table for the categories and uses a numeric value to recognise what category it is represented by.
So the Access table has 3 columns for tree category (tools/sockets/3mm for example) where the MySQL only has 82 for example and this value represents tools/sockets/3mm.
What I intend to do is make my own categories table using the values from the 3 columns in the access table, Categories Column, Subcategories Column and Sub Subcategories Column. Out of the 35k entries there were only 9 unique entries in the categories column.
I think I need to explain how I got this far. First of all the original data is given to me as a Tab Delimited text file. I transferred this to a MS Excel file and then copied the categories column to a column in a new excel sheet. I then removed duplicates and I was left with nine unique entries. These 9 unique values were given values 1 to 9 and I used Find and Replace All to change the 35k entries to the correct value.
While doing all this I started to make my new Categories table with the following columns (category_id, parent_category_id, category_path, category_name, category_order) and here is a sample entries in these columns ; delimited for the previously mentioned Tools/Sockets/3mm (73;53;0,48,53,;3mm;1) the 0,48,53, tells the full category tree. 48 is Tools, 53 is Sockets and 73 is 3mm Sockets. But this is table is something I'll do myself; I just taught that it was important for you to understand.
I then copied the Categories Column and the Subcategories Column to a new excel Sheet and removed duplicates entries making sure to include the 2 columns. I was left with 70 unique entries. These Subcategories were given values from 10 to 79 and the new entries added to the new categories table, so far so good. Now to change the 35k entries in the Subcategories Column and this is where the problem arises for me, I can't do a Find and Replace All on the 35k entries in the subcategories column to replace the subcategory name with the corresponding new numeric value as some Subcategories names may have more than 1 Category values and therefore I can't do a replace on the subcategory column without considering the value in the Category column. And then when I go to Sub Subcategory column I will need to consider the values in the category and subcategory columns.
God I hope you had the patience to read all this as it took longer than I suspected. All help is appreciated.
Thanks,
Paul