The disadvantage to having all uppercase stored is that it is very difficult
to correctly un-uppercase words like, say, last names?! If you can imagine
needing the up/low case word, then store the data entry the way it was
entered ... and use a query with something like:
UCase([YourField])
to (temporarily) produce all uppercase for display, report, mailing labels,
etc.
If you will only ever need uppercase, you can restrict using the input mask
(check Access HELP), or convert using the UCase() function in a BeforeUpdate
event for the field.
If you always want upper case then you can place the code below in the
KeyPress event of the text box. This shows the characters in upper case as
the user enters them (which looks better than converting them afterwards, I
think).
Private Sub YourTextField_KeyPress(KeyAscii As Integer)
KeyAscii = Asc(UCase(Chr(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.