Force Upper/Lower case on Month

D

Dwight

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)
 
D

Dwight

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

changing lower to upper case issue 1
Lower-Case Characters 2
upper case lower case 0
Lower case date 4
Upper / Lower Case 1
lower case / upper case 1
Combo Box case sensitivity 0
Upper Case 3

Top