I need to copy first name and last name and paste it into my unbound combo box after adding a new client.
Currently, my “new name” form has: First Name and Last Name fields and I want to combine them so that it would look like this: Anderson, Brent
I can see how I could reverse Helen Feddema’s code to split the name and paste them into two fields as follows:
‘Parse entry into first and last names
strLastName = Mid(NewData, 1, InStr(NewData, Chr(44)) – 1)
Debug.Print “First name:” & strFirstName
strFirstName = Mid(NewData, InStr(NewData, Chr(32)) + 1)
Debug.Print “Last name:” & strLastName
Normally, I’d ask Helen directly, but I thought maybe, someone else could learn from this too.
Thanks in advance.