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,
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
Dim strText$ Dim arValues() As String strText = "name surname" arValues = Split(strText, Space(1)) Debug.Print arValues(0) 'name Debug.Print arValues(1) 'surname
Microsoft MVP - Visual Basic 2006-2013 Why VB clears the clipboard on startup and how to avoid it? . Filtering Arrays . Save File To Database . Extract File From Database . Extract picture from database without using hard drive . Change Menu BackColor . How to use MS Flexgrid . Make Frame Transparent . The Easiest Way to Create an NT Service With VB6 . How to comment blocks of code in VB5 and VB6 . How to find and replace missing members of control array Visual Basic 6.0 On-Line Documentation . Connection Strings
thank you, That is what I needed
Great!
Forum Rules