Link to home
Start Free TrialLog in
Avatar of trosss282003
trosss282003

asked on

Search and replace function query in MicroSoft Access

I have two tables one table is called IC which has only two fields:  Item# and Item_Description The other table which is a cross reference table called Abbreviation the Abbreviation table has two fields: Terms and Abbreviation.   I need to search for the Terms from the Abbreviation table in the Item_Description field and replace the term in the Item_Description field with the abbreviation that corresponds with the Term.

For expample,  if the Item_Description is 5XLarge Tooth Picks and there is a Term in the Abbreviation tables called 5XLarge with a abbreviation of 5XL the Item_Description should change to 5XL Tooth Picks.  The term could be anywhere in the Item_Description field.  For example, the Item_Description could be 3 of 5XLarge Tooth Picks which should change to 3 of 5XL Tooth Picks.  


Avatar of Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1)
Flag of United States of America image

you can achieve this in VBA using two recordsets. is this an option?
Avatar of trosss282003
trosss282003

ASKER

capricorn1.  I know VBA to certain extent. Would you create a Loop with one recordset into the other recordset?
ASKER CERTIFIED SOLUTION
Avatar of Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Works great.  Thank you very much