Access 2000
I need to write some VBA code to split one string (strName) into two (strFirst and strLast). The code needs to check if the string contains a space, and if it does split the string into two strings at the point of the first space found.
e.g.
strName strFirst strLast
"John" "John"
"John Smith" "John" "Smith"
"John Smith Childs" "John" "Smith Childs"
Many Thanks.
I need to write some VBA code to split one string (strName) into two (strFirst and strLast). The code needs to check if the string contains a space, and if it does split the string into two strings at the point of the first space found.
e.g.
strName strFirst strLast
"John" "John"
"John Smith" "John" "Smith"
"John Smith Childs" "John" "Smith Childs"
Many Thanks.