Oct 6, 2003 #1 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?
How do you delete a certain text string (or if not that, then the last 6 characters of a field) using a query?
Oct 6, 2003 1 #2 Golom Programmer Sep 1, 2003 5,595 CA 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. Upvote 0 Downvote
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.
Oct 6, 2003 Thread starter #3 roselam Technical User May 14, 2003 15 US Thank you! That worked perfectly! Upvote 0 Downvote