Results 1 to 2 of 2
  1. #1
    Star Lounger
    Join Date
    Jan 2001
    Location
    Brandon, Manitoba, Canada
    Posts
    63
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Extract name (Access2K)

    How can I extract a first and last name from a combined name field in this format: "Lastname, first name"?

  2. #2
    Gold Lounger
    Join Date
    Jun 2001
    Location
    Crystal Beach, FL, Florida, USA
    Posts
    3,436
    Thanks
    1
    Thanked 34 Times in 34 Posts

    Re: Extract name (Access2K)

    Something like this:

    Dim pos as integer

    pos = instr(FullName, ",")

    FirstName = Left(FullName,pos-1)
    LastName = Trim( Mid(FullName,pos+1) )
    Mark Liquorman
    See my website for Tips & Downloads and for my Liquorman Utilities.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •