Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using an update query to change part of a field 1

Status
Not open for further replies.

bravo6

IS-IT--Management
Mar 23, 2006
83
0
0
US
Can an update query be used to change a portion of text within a record?

I have a field that is populated by numerous records that contain the string "//" eg CCCC//CCNN.CCC

I want to write an update query that will select fields that contain the "//" and change the "//" to "@". So in the above example the result would be CCCC@CCNN.CCC

Thanks to everyone who has been so helpful in the past.

PLEASE no VBA answers, I need this in Access.
 
Use Replace().


Greg
People demand freedom of speech as a compensation for the freedom of thought which they seldom use. Kierkegaard
 
e.g.
Code:
Update yourTable
set yourfield = replace([yourfield], "//", "@")

Hit return too quickly. [smile]

Greg
People demand freedom of speech as a compensation for the freedom of thought which they seldom use. Kierkegaard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top