inputmask for last name

G

Guest

I'm trying to determine how to write an inputmask for a last name field that
will capitalize the first letter regardless of whether the user types in
uppercase or lowercase. I was using
L<CCCCCCCCCCCCCCCCCCCCCC

which works well for most entries. However, I run into a problem with
hyphenated last names. I need the first letter of the second last name to be
capitalized. For examples, I currently get "Smith-jones", but I want
"Smith-Jones". Is this possible?
 
R

Rick Brandt

LyndsyJo said:
I'm trying to determine how to write an inputmask for a last name
field that will capitalize the first letter regardless of whether the
user types in uppercase or lowercase. I was using


which works well for most entries. However, I run into a problem with
hyphenated last names. I need the first letter of the second last
name to be capitalized. For examples, I currently get "Smith-jones",
but I want "Smith-Jones". Is this possible?

Point-1: InputMasks are evil

Point-2: Not all last names begin with a capital letter.

At some point users have to take some responsibility for the data they
enter. I would remove the mask and tell users to spell names properly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

upper case letters 4
Separate Names 3
Setting up capitalization after hyphens 2
Counting Criteria Values with For Loop 3
Parsing Question 4
FIRST NAME LAST NAME 10
Name searching problem 2
name extraction 6

Top