Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

Trimming off Mr & Mrs.

Discussion in 'Information Technology' started by CMcGrann, Jul 28, 2006.

Tags:
  1. CMcGrann

    CMcGrann
    Expand Collapse
    Guest

    I have a name field that in some cases includes the name title for example
    Mrs. Carol... or Mr. Thomas... I want to trim off the Mr. and Mrs. This
    heading in not in all fields. I want only to see first and last name only.

    Thanks for any help you can give!
     
  2. Loading...

    Similar Threads Forum Date
    Can someone answer my question? (Trimming Beard) New to Sikhism Oct 15, 2012
    Sikh News Players thrown out of meet for trimming hair Breaking News Nov 24, 2004
    Getting Something Off Your Chest Always Makes You Feel Better Hard Talk May 15, 2016
    Sikh News Judge Says Army Can’t Require Special Testing Of Sikh Officer Breaking News Mar 5, 2016
    Cholesterol Is Finally Officially Removed From "naughty List" Health & Nutrition Feb 11, 2016

  3. Tony Williams

    Tony Williams
    Expand Collapse
    Guest

    I would create 3 fields title, first name and surname then you can
    concatenate them in any way you want
    Tony
    "CMcGrann" <CMcGrann@discussions.microsoft.com> wrote in message
    news:948987DB-F4DB-4558-AA4E-8DD1B63DFEAE@microsoft.com...
    >I have a name field that in some cases includes the name title for example
    > Mrs. Carol... or Mr. Thomas... I want to trim off the Mr. and Mrs. This
    > heading in not in all fields. I want only to see first and last name
    > only.
    >
    > Thanks for any help you can give!
     
  4. fredg

    fredg
    Expand Collapse
    Guest

    On Tue, 16 May 2006 07:45:02 -0700, CMcGrann wrote:

    > I have a name field that in some cases includes the name title for example
    > Mrs. Carol... or Mr. Thomas... I want to trim off the Mr. and Mrs. This
    > heading in not in all fields. I want only to see first and last name only.
    >
    > Thanks for any help you can give!


    In a query:
    Exp: Replace(Replace(Replace([CombinedNames],"Mr. and Mrs. ",""),"Mrs.
    ",""),"Mr. ","")
    --
    Fred
    Please respond only to this newsgroup.
    I do not reply to personal e-mail
     
  5. Ofer Cohen

    Ofer Cohen
    Expand Collapse
    Guest

    You can use the replace function in a Query

    MyName: Replace(Replace([FieldName],"Mr. ",""),"Mrs. ","")

    --
    Good Luck
    BS"D


    "CMcGrann" wrote:

    > I have a name field that in some cases includes the name title for example
    > Mrs. Carol... or Mr. Thomas... I want to trim off the Mr. and Mrs. This
    > heading in not in all fields. I want only to see first and last name only.
    >
    > Thanks for any help you can give!
     

Share This Page