Find/replace/combine data

Tcurtis

Board Regular
Joined
Aug 15, 2009
Messages
149
I am new to Access and want to covert my database over from Excel where I am very confortable to Access. I have a problem with several fields in my tables though. I need to search one column of data and replace it with the correct data. Example: Column Depot has several misspellings that I need to replace with Houston. How do I replace all those misspellings to the correct spelling? Also, since I have three tables that are exactly the same except the are from different Depots, how to I make them all into one table?
I am looking for the most effecient way to do this instead of running all my data through Excel and them importing it into Access. Do I import and append my data into one table and then correct the three depot spellings or correct them indepently and then combine?
Thanks
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
For the misspellings, you could import the table and then run an update query to correct them and it really doesn't make much difference whether you do them individually or combined.

To put the three tables into one table in Access, you have two options. Import the first one and then append the next two as they are imported or my lease favorite idea is to Import each one individually, run a UNION query and then a select query using the Union as a recordset and finally creating a new table with a Make Table query. A bit of an exercise, but an option.
 
Upvote 0
Thanks Alan, I think my best option would be to import one table and then append the other two to that one and do an update query. Since this is a monthly report, I could just append the new tables and run the update query which sounds much better in the long run. Access has so many options I had too many options to choose from. Thank you for your input, it is much appreciated.
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top