Yes you can do the same task in a query. However, queries usually deal more with data in tables. Initially, I thought that you wanted to change data in a form. Perhaps I misunderstood.
In a query, you can use the iif function to do this task. This is iif...
iif(A,B,C)
"A" is a test that can be resolved to T or F.
"B" is the value if the test is true.
"C" is the value if the test is false.
Lets go back to the previous example. This time, we will just let the secretary misspell the word. However, each evening we will run an append query that appends today's records to an archive table. We want to stop the mispelling before it gets into the archive table. The field is called "input name" in the first table and "companyname" in the archive table. In the append query, you would use iif as follows:
x1:iif([input name]="Zerox","Xerox",[input name])
X1 is just a random variable name. Remember that you will designate the destination table in the "append to" row.
The logical test compares the input name field with the string "Zerox".
If they are equal, you get the string "Xerox".
If they are not equal, you get input name.