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 / November 2007

Tip: Looking for answers? Try searching our database.

Upper Case Data acceptance irrespective of CAPS Lock status

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Vikas Kale - 06 Nov 2007 07:30 GMT
I want my data should be entered (in text box object) only in capital letters
irrespective of Caps Lock status.  Is it possible??????
Peter Hibbs - 06 Nov 2007 08:53 GMT
Vikas,

Add the following code to the KeyPress event of your Text box.

   KeyAscii = Asc(UCase(Chr(KeyAscii)))

HTH

Peter Hibbs.

>I want my data should be entered (in text box object) only in capital letters
>irrespective of Caps Lock status.  Is it possible??????
Maurice - 06 Nov 2007 20:55 GMT
Set the format property of the textbox to > (greater-sign). That should
present tha data as you wish no matter the caps-lock.

hth
Signature

Maurice Ausum

> I want my data should be entered (in text box object) only in capital letters
> irrespective of Caps Lock status.  Is it possible??????
John W. Vinson - 06 Nov 2007 22:18 GMT
>Set the format property of the textbox to > (greater-sign). That should
>present tha data as you wish no matter the caps-lock.
>
>hth

Just note that this format *displays* the data in all caps. What's actually
stored in the table is what's typed, as typed - lower case, upper case or
mixed case as the case may be.

            John W. Vinson [MVP]
Maurice - 08 Nov 2007 19:18 GMT
Hi John,

I know the point you are making. I just assumed poster wanted capitals in
the textbox as shown on the form..
Signature

Maurice Ausum

> >Set the format property of the textbox to > (greater-sign). That should
> >present tha data as you wish no matter the caps-lock.
[quoted text clipped - 6 lines]
>
>              John W. Vinson [MVP]
 
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.