Force Upper/Lower case on Month

G

Guest

How can I force the first letter entered in a textbox to be upper case and
all subsequent letters be lower case?

The textbox is for the 3 character month.
I need the data to be stored in upper/lower case.

I have used the following code on the key press event for other entries.

KeyAscii = Asc(UCase(Chr(KeyAscii)))

Is there something that can be added to above to make this happen?

Thanks in advance!

Dwight
 
S

Steve Schapel

Dwight,

I suggest using code like this on the After Update event of the textbox...

Me.NameOfTextbox = StrConv(Me.NameOfTextbox, 3)
 
G

Guest

Steve,
Thank you!
I decided that the best way to do this would to use drop down listboxes with
the control source set the associated data field.

Thanks again!

Dwight
 

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 3
Upper Case month 3
lower case / upper case 1
upper case lower case 0
Lower-Case Characters 2
How to convert TextBox input to Upper Case? 3
First letter upper 1
Upper Text in a TreeView 9

Top