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

Delete text string in Access query 1

Status
Not open for further replies.

roselam

Technical User
May 14, 2003
15
US
How do you delete a certain text string (or if not that, then the last 6 characters of a field) using a query?
 
If you are talking about just changing a field value then
Code:
   UPDATE tbl SET fld = Left$(fld,len(fld)-6)
   WHERE Right$(fld,6) = "abcdef"
If you want to get rid of the whole record then look up the DELETE command.
 
Thank you! That worked perfectly!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top