I’ve run into a rather unique issue which I will throw out for any assistance. I have developed a db for a client that tracks tools. These are tools that are used in the manufacturing area and consist of high dollar air and computer controlled hand tools. This db tracks several different items associated with the tooling, including:
1. Tools Sold
2. Demo tools – tools that are loaned for use by a company prior to potential purchase
3. Tools Repaired – includes a detailed Invoice form that tracks what was repaired, costs, warranty credits, etc.
4. Tool Repair History – allows tracking of all repairs for each particular tool. Tracks by Customer Name, Tool Make/Model, and Serial #.
5. Company Information – Name, address, phone #’s, contacts, etc.
The common denominator throughout the whole db is the Customer Name. It is used in each of the above tables / entry forms. As with most db’s there are several related queries and reports. My situation (and need for help) is that the Customer’s Name (Company Name) sometimes changes, for example, through a buy-out, or merger, company XYZ, may now become company ABC. The problem that is being encountered is that when the client changes the company name, all associated records become “orphaned”. Since they are related to each particular tools serial number they are no longer accessible. If they change the Company name back to the original name (XYZ), everything returns to normal.
I know of two ways, both of which are not “friendly” to the client’s user (not a high level of computer confidence) to make the changes. The first is to open the underlying tables and use the REPLACE function to update the changed field entrees. The second is to enter the Company ABC as a new company (Company Info form) and change each of the related records to the new company. Once completed, the “old” company XYZ can be deleted.
However, as mentioned, it would be best if the client’s user didn’t access the tables directly, and the time to change each related record individually is not acceptable.
Here is where I need the help…. I would like to create (if possible) a Find / Replace / Update form, where the user would select the “old” company name from one combo box, select the “new” (change records to) company name from a second combo box and press an OK button to Find and Replace all related records in all of the underlying tables at one shot. Yes it would mean having to enter the changed Company Name as a “new” company, but being able to find and replace all of the records at one time would be an excellent method of achieving this task. So….any ideas??