R
richaluft
I'm wondering if someone can suggest an efficient way to code the
following:
When entering a person's name in a field, I want it to be intered as
surname,prename (without a space after the comma.
Sometimes I have the add a name such as "Brown,Rose A". (Note that I
don't want to bother putting in a separate control for 'middle
initial).
I currently have code that flags a space, Chr(32), in the name to
alert the user not to leave a space. I would like to change this so
that I will only get this message of alert when the space follows a
comma, Chr(44).
Any help as to how to express this would be greatly appreciated.
Richard
following:
When entering a person's name in a field, I want it to be intered as
surname,prename (without a space after the comma.
Sometimes I have the add a name such as "Brown,Rose A". (Note that I
don't want to bother putting in a separate control for 'middle
initial).
I currently have code that flags a space, Chr(32), in the name to
alert the user not to leave a space. I would like to change this so
that I will only get this message of alert when the space follows a
comma, Chr(44).
Any help as to how to express this would be greatly appreciated.
Richard