Make Default upper case

stu_c

Registered User.
Local time
Today, 06:46
Joined
Sep 20, 2007
Messages
494
is there a way to make fields default to uppercase? if how please help i cannot seem to find it in the properties box :(
 
In "Format" properties put the sign > (in the form, or in the table, or in both). For text fields only.
 
Below is code attached to convert text to uppercase automatically on entry by user.

Just change (Your Control Name) to the name of your text box

Code:
Private Sub (Your Control Name)_KeyPress(KeyAscii As Integer)
    Dim strCharacter As String

    ' Convert ANSI value to character string.
    strCharacter = Chr(KeyAscii)
    ' Convert character to upper case, then to ANSI value.
    KeyAscii = Asc(UCase(strCharacter))
End Sub
 

Users who are viewing this thread

Back
Top Bottom