Replace Query with records in table

D

David McKnight

I have the following query:

UPDATE Scores INNER JOIN Scores_Clean ON Scores.Home Like "*" &
Scores_Clean.Find & "*" SET Scores.Home =
Replace(Scores.Home,Scores_Clean.Find,Scores_Clean![Replace with]);

It works fine except it I want it to only replace matches that are exact.
 
J

John W. Vinson

It works fine except it I want it to only replace matches that are exact.

Then get rid of the LIKE and wildcards and use an equality instead:

UPDATE Scores INNER JOIN Scores_Clean
ON Scores.Home = Scores_Clean.Find
SET Scores.Home = Replace(Scores.Home,Scores_Clean.Find,Scores_Clean![Replace
with]);
 

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

Top