Input Mask - Convert to Uppercase

S

Spangler

How do I convert the data in my fields to Uppercase??? I
tried a number of combinations as input masks and it
appears to work for new entries...However for entries
that already exists it converts some to uppercase and
some entries are unaffected. Why are some things affected
while others are not???
 
J

John Vinson

How do I convert the data in my fields to Uppercase??? I
tried a number of combinations as input masks and it
appears to work for new entries...However for entries
that already exists it converts some to uppercase and
some entries are unaffected. Why are some things affected
while others are not???

Actually an Input Mask isn't capable of actually changing what's
stored in the table at all - only what's displayed.

You can run an Update query updating the field to

UCase([fieldname])

to permanently convert the values to uppercase.
 
R

Rolf Østvik

How do I convert the data in my fields to Uppercase??? I
tried a number of combinations as input masks and it

I will suggest to use the KeyPress property of the field.

KeyPress function:

Private Sub <FieldName>_KeyPress(KeyAscii As Integer)
KeyAscii = UCase_Asc(KeyAscii)
End Sub
 

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