Results 1 to 4 of 4

Thread: [RESOLVED] separation field

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2005
    Location
    Bosnia and Herzegovina
    Posts
    65

    Resolved [RESOLVED] separation field

    hi,

    I in one field I have: "name surname"
    What I would like is to separate it to 2 fields so I have in one field "name" and in another "surname".


    Adnan,

  2. #2
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: separation field

    Not quite sure what you mean but try this quick sample and hopefully it'll work for you:
    Code:
    Dim strText$
    Dim arValues() As String
    
        strText = "name surname"
        arValues = Split(strText, Space(1))
        Debug.Print arValues(0) 'name 
        Debug.Print arValues(1) 'surname

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 2005
    Location
    Bosnia and Herzegovina
    Posts
    65

    Re: separation field

    thank you,

    That is what I needed

  4. #4

Posting Permissions

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



Click Here to Expand Forum to Full Width