change multiple items in one field

G

Guest

Hello,

I have a table setup that has multiple records (over 1000). There is one
specific field that has items in it that need to be changed. For example,
about 300 of the listings has the word basketball, and I need it to be
changed to the number 9. another 200 has baseball, which needs to be changed
to the number 8. There are about 10 others to do this with as well.

I can do an update query, which will only allow me to do one of them at a
time. I can do find/replace, which again would only do one at a time. I
would like to do some sort of action where I can make a table, list what I
want the changes to be, then run it.

I need to be able to do this multiple times over and over again without
having to run multiple find/replaces or update queries. Any ideas on how I
can do this?
 
D

Douglas J. Steele

Since you're changing from text to number, you should probably add a new
numeric field to your existing table, rather than reusing the text field.

Create a table that has the conversions in it, one row for each.

Create a query that joins the existing table to that new table. As the
Update To field under the new numeric field you added to your existing
table, put [NameOfNewTable].[NameOfFieldContainingNumber]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Counting multiple memberships 1
One form to amend 3 tables 2
Access Dcount (multiple criteria) 3
Edit Multiple Fields at Once? 5
Name Changes 3
Multiple Replacements 1
One field, multiples entries 3
Linking two tables 1

Top