Maybe you need a code like bellow:
Code:
Option Compare Database
Option Explicit
Private Const cstrSQL As String = "UPDATE tblRoles SET [Roles] = Replace([Roles],'$n$','$a$') WHERE (instr(1,[Roles],'$n$',1)>0);"
Sub ReplaceNamesWithAcronyms()
Dim strSQL As String
With CurrentDb.OpenRecordset("tbleAcronyms", dbOpenForwardOnly)
While Not .EOF
strSQL = Replace(cstrSQL, "$n$", ![Names])
strSQL = Replace(strSQL, "$a$", ![Acros])
.MoveNext
CurrentDb.Execute strSQL, dbFailOnError
Wend
.Close
End With
End Sub
Do Not Use It in your original database!!!
Give it a try in a copy of your project.
Happy new year! :-)