UPPERCASE all field in the Form.

S

sigh

Hi,
Is't any easy way to set as all the fields in the form
to automatic convert to UPPERCASE as the user type. Do I
have to program the code to covert to uppercase each field
or all fields at the same time?
Any help would be very appreciated.
 
T

tina

paste the following code into a module

Public Function AllCAPS()

If IsNull(Screen.ActiveControl) Then
Exit Function
Else
Screen.ActiveControl = StrConv
(Screen.ActiveControl, vbUpperCase)
End If

End Function

capitalizes every letter in the string in the form control.
call this function in an event procedure, or run it
directly from the After Update or On Exit event line in
the control properties window, as =ALLCAPS()
using this function will actually change the data entered
in the control.

hth
 

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