Capitalize letters in a field

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In my confirmation number field, when letters are entered I want them all to
be capitalized. What’s the correct way of doing this? Do I set it on the
form or in the table?

Thanks
Todd
 
In the form, on the textbox's After Update Event:
Me.TextboxName = UCase(Me.TextboxName)

(replacing "TextboxName" with the actual name of the textbox on your form,
of course!)
 
You can also easily set an Input mask in the table properties that will
capitalize that field in both the table and any resulting forms. In
properties, Input Mask line, type >CCCCC, putting as many C's as there are
required places for your confirmation field. The greater than sign forces
all caps, while the C allows any character or space, with entry optional.
For more information, See access help using keywords "Valid input mask
characters"
 
An even easier way to do it is to put ">" in the format field on the table
design view. This will make all chracters appear as caps.
 
An even easier way to do it is to put ">" in the format field on the table
design view. This will make all chracters appear as caps.

the key to this being the word "appear". They'll actually be STORED as
typed; in table datasheet or basic Form/Report view they'll be shown
as all caps, but that's a runtime translation.

John W. Vinson[MVP]
 

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

Back
Top