Changing text to uppercase

G

Guest

I want to have the data the user inputs change into uppercase on the form and
also the table it is stored in.

I have tried putting the ">" in the Format and that works on the actual
form, but it does not make the data uppercase in the table it is stored in.
Any help would be greatly appreciated. Thanks.
 
D

Douglas J. Steele

Format only changes how the data appears. It has no affect on how the data's
stored.

Try using the UCase function in the form's (not the control's) BeforeUpdate
event:

Private Sub Form_BeforeUpdate()

Me.MyTextBox = UCase(Me.MyTextBox)

End Sub
 
R

ruralguy via AccessMonster.com

Put:

Me.YourControlName = UCase(Me.YourControlName)

in the AfterUpdate event of the control.
 

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

Similar Threads

COMBO BOX vs Uppercase 6
Input Mask vs. Format Property 1
changing first char to uppercase. 3
forcing uppercase 2
Convert to uppercase 1
Auto Uppercase 5
force uppercase 4
Mail Merge Uppercase 2

Top