I am a new programmer at a new job creating an application. Our users are typing, into 1 field, customer names in all sorts of ways.
Ex: John Smith; Smith, John; Smith,John; Smith; SMITH; Mr. John Smith.
How do I take a field that contains a mishmash of information and pull a first name and last name? Since my firstname and lastname fields will be feeding into important form letters I would like to have only the first letter capitalized. If the customer field only contains one word, I am supposed to add 'Residence.' For example: "Smith Residence."
I've been experimenting with "InStr" and have figured out how to pull the last name when the name is like: 'Smith, John', but that is all I have been able to do.
I'm a beginner and this is beyond what I was taught in school. I've looked for clues on the Internet for the last 3 days.
Thanks,
Michelle
Ex: John Smith; Smith, John; Smith,John; Smith; SMITH; Mr. John Smith.
How do I take a field that contains a mishmash of information and pull a first name and last name? Since my firstname and lastname fields will be feeding into important form letters I would like to have only the first letter capitalized. If the customer field only contains one word, I am supposed to add 'Residence.' For example: "Smith Residence."
I've been experimenting with "InStr" and have figured out how to pull the last name when the name is like: 'Smith, John', but that is all I have been able to do.
I'm a beginner and this is beyond what I was taught in school. I've looked for clues on the Internet for the last 3 days.
Thanks,
Michelle