I want first letter to show capitalized

R

Ryan

How do I make it so the first letter is capitalized and others are lowercase:
Ex. Billy Bob --even when typed in with all lowercase?

Do i adjust in table or in form and what do I do?
 
L

Linq Adams via AccessMonster.com

In the code module for your form

Private Sub YourTextBox_AfterUpdate()
Me.YourTextBox = StrConv(Me.YourTextBox, vbProperCase)
End Sub

Just be aware that this may give you some unexpected results if you're
actually using it for entering full names into one textbox/field.

While

billy bob

will become

Billy Bob

billy bob III (the 3rd)

will become

Billy Bob Iii

Each component of a name (first name, last name, qualifier) really should be
in a separate field, concatenating them as need be for display.
 
C

Clifford Bass

Hi Ryan,

And DeAnna, typed as deanna will become Deanna. And McDonald will be
Mcdonald, and so on and so on. If this is new entry of text is best to have
the names typed exactly as the person desires. If after the fact, do an
update and then manually fix those that need fixing.

Clifford Bass
 

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

Top