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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update part of a field in a table 1

Status
Not open for further replies.

piovesan

Technical User
Jan 23, 2002
159
CA
Is it possible to update only part of a field in a table? I have a field called street_names which contains the street name, and street type. Ex. Connor Ct, Lahey Ct, etc But I want all the Ct s to be CRT. How can I change the street type and still maintain the proper street name?
 
Use

UPDATE tblTableName SET tblTableName.StreetName = Left([StreetName],Len([StreetName])-2) & "CRT"
WHERE (((tblTableName.StreetName) Like "*Ct"));



Replacing tblTableName with your table name - of course.


QED.

G LS
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top