Home All Groups Group Topic Archive Search About

hide the first two specific characters of the value of a field

Author
9 Feb 2009 10:14 PM
jumydar
i want to delete from the familyname field the first two characters if it
start with GF fr examle

Author
11 Feb 2009 4:30 AM
Tom van Stiphout
On Mon, 9 Feb 2009 14:14:02 -0800, jumydar
<jumy***@discussions.microsoft.com> wrote:

if I understand you correctly you'd want an UPDATE statement like
this:
update myTable
  set FamilyName = Mid(FamilyName, 3)
  where Left(FamilyName, 2) = 'GF'

-Tom.
Microsoft Access MVP



Show quoteHide quote
>i want to delete from the familyname field the first two characters if it
>start with GF fr examle