In Access, I've found it is usually a good idea to bracket the table and field
name on the right side of the set clause.
UPDATE Active SET Active.Rate = "MC" & [Active].[Rate]
WHERE (Active.Class)=[WHICH COURSE?];
Perhaps an unneeded question: Are you running the query or simply switching
to datasheet view? If you just switch to datasheet view then you will see the
records and values that WILL be changed in you run the query.
Select Query: Run from the menu or click the button with the red exclamation
mark to execute the query.
John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County
Bob said:
Brad said:
Bob,
I used
UPDATE Active SET Active.Rate = "MC" & Active.Rate
WHERE (Active.Class)=[WHICH COURSE?];
and all I'm getting back is the rate field returned with no
concatenated "MC" like I want. Should it be "me.active.rate" for the
Absolutely not.
set command? That doesn't work either. The table is "active" and
the fields "class" and "rate" but it isn't working.
It looks absolutely correct to me, but what do I know.
Err ... this query does not return records. Do you mean you check the table
after running the query and fail to see the MC prefix? That probably means
you are not supplying the proper criterion for the course when you are
prompted. Show me a few rows of sample data to illustrate what the data
looks like to begin with and how you want it to look after the query runs.
Also, tell me what you enter when prompted for the course name.
PS. [Class] is not a lookup field is it?