lower case / upper case

J

JohnE

Have a situation that requires any one who types a revision into a field to
make any and all letters lowercase. I am putting KeyAscii =
ASC(LCase(Chr(KeyAscii)))
in the field but needed to verify this is correct plus which event would be
the best to put it in?
Thanks.
John
 
J

John W. Vinson

Have a situation that requires any one who types a revision into a field to
make any and all letters lowercase. I am putting KeyAscii =
ASC(LCase(Chr(KeyAscii)))
in the field but needed to verify this is correct plus which event would be
the best to put it in?
Thanks.
John

I'd suggest simply lowercasing the entire textbox in its AfterUpdate event:

Private Sub textboxname_AfterUpdate()
Me!textboxname = LCase(Me!textboxname)
End Sub

Your event code might be appropriate in the OnKey event but it's (IMO)
overkill for the situation.
 

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