If you get the query to work again (open in design view and reset the fields and table names where appropriate) you have two options:
1. use Docmd.OpenQuery instead of CurrentDB.Execute as that will not trigger the error (queries with references to forms will do that when used with .Execute). You will need to add Docmd.SetWarnings False before the .OpenQuery and Docmd.SetWarnings True after.
Code:
Docmd.SetWarnings False
Docmd.OpenQuery "CompanyDomainUpDateQry"
Docmd.SetWarnings True
2. To use execute try the following:
Code:
Dim prm as Parameter
For Each prm In CurrentDB.QueryDefs("CompanyDomainUpDateQry")
prm.Value=Eval(prm.Name)
Next prm
CurrentDb.Execute "CompanyDomainUpDateQry",dbFailOnError
Cheers,