Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / May 2007

Tip: Looking for answers? Try searching our database.

Forcing text size

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jk - 11 May 2007 19:37 GMT
I have a billing field that has a user enter an alpha number invoice
identifier and i would like to ensure that any entry in this field will be
large caps regardless if the end user keys in small caps. How is this done?
Damon Heron - 11 May 2007 20:01 GMT
In the Exit event of your textbox, put:
Me.Text0 = UCase(Text0) 'substituting the name of your textbox

>I have a billing field that has a user enter an alpha number invoice
> identifier and i would like to ensure that any entry in this field will be
> large caps regardless if the end user keys in small caps. How is this
> done?
Arvin Meyer [MVP] - 12 May 2007 20:21 GMT
In the AfterUpdate event of the textbox use:

Sub txtMyTextbox_AfterUpdate()
   Me.txtMyTextbox = UCase(Me.txtMyTextbox)
End Sub

or

You can also use the KeyPress event to force the entry to upper case as it
is entered:

Sub txtMyTextbox_KeyPress(KeyAscii As Integer)
   If KeyAscii >= 97 And KeyAscii <= 122 Then
       KeyAscii = KeyAscii - 32
   End If
End Sub
Signature

Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com

>I have a billing field that has a user enter an alpha number invoice
> identifier and i would like to ensure that any entry in this field will be
> large caps regardless if the end user keys in small caps. How is this
> done?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.