In Access you would have to run that three as three separate queries.
To do this all in one query, you would need to run the query as:
UPDATE ReviewBPS
SET
Background = Replace([Background], Chr(13), Chr(13) & Chr(10))
, Purpose = Replace([Purpose], Chr(13), Chr(13) & Chr(10))
, Scope = Replace([Scope], Chr(13), Chr(13) & Chr(10))
WHERE Background Like "*" & Chr(13) & "*"
OR Purpose Like "*" & Chr(13) & "*"
OR Scope Like "*" & Chr(13) & "*";
The above would update the three fields in one query. It would however have
create errors if one or two fields in the record was null.
So you might need to use a more complex expression where you check if each
field is null or not. Something like the following for each of the fields.
Background = IIF([Background] Is not Null, Replace([Background], Chr(13),
Chr(13) & Chr(10)),Null)
John Spencer
Access MVP 2002-2005, 2007-2008
The Hilltop Institute
University of Maryland Baltimore County
Ok, I think I got it. Now I want to update several fields from the same
table with one update query, but I'm getting a syntex error. I think my
comma's are in the wrong place. Here is what I have.
UPDATE ReviewBPS SET Background = Replace(Background, Chr(13), Chr(13) &
Chr(10))
WHERE Background Like "*" & Chr(13) & "*",
UPDATE ReviewBPS SET Purpose = Replace(Purpose, Chr(13), Chr(13) & Chr(10))
WHERE Purpose Like "*" & Chr(13) & "*",
UPDATE ReviewBPS SET Scope = Replace(Scope, Chr(13), Chr(13) & Chr(10))
WHERE Scope Like "*" & Chr(13) & "*";