Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing Text to All Uppercase 1

Status
Not open for further replies.

labprof

Technical User
Jan 26, 2006
49
US
How would I change the text so that when the user enters information into a form field is always changes the text to all upper case.

I know that I need to use the after update command....

I have a field on my form called Customer.

I always want the customer name to appear as CAPITALIZED.

Any help would be appreciated.

Labprof
 
In the format for the Customer name control, put a >.

This will display the text as uppercase in the form, but will not affect how it is stored in the table.

Let them hate - so long as they fear... Lucius Accius
 
Thanks Straybullet....

But what if I want it to save in the table as CAPITALIZED?

I will be using the data enter into this field on a report and I want the Customer Name always to show up capitalized on the report.

Any ideas?

Labprof
 
Using the > on the form (or report) will display the text as uppercase, to save it as uppercase in the table, use the > in the field properties

Let them hate - so long as they fear... Lucius Accius
 
Thanks Straybullet!

That worked GREAT.

Labprof
 
How are ya labprof . . .

In the controls [blue]On Key Press[/blue] event copy/paste the following:
Code:
[blue]   If KeyAscii > 96 And KeyAscii < 123 Then
      KeyAscii = (KeyAscii And 223)
   End If[/blue]

Calvin.gif
See Ya! . . . . . .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top