Connecting Tech Pros Worldwide Help | Site Map

Data entry in Upper Case

 
LinkBack Thread Tools Search this Thread
  #1  
Old May 26th, 2007, 05:45 PM
Matuag
Guest
 
Posts: n/a
Default Data entry in Upper Case

How can I enable Caps Lock after the form or database opens?


  #2  
Old May 26th, 2007, 08:45 PM
Bob Quintal
Guest
 
Posts: n/a
Default Re: Data entry in Upper Case

Matuag <matuag@gmail.comwrote in news:1180201473.589368.190580
@g37g2000prf.googlegroups.com:
Quote:
How can I enable Caps Lock after the form or database opens?
>
You need to set an input mask that sets uppercase on each text
control where uppercase is required. See the help files.



--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

  #3  
Old May 27th, 2007, 12:15 AM
Ed Robichaud
Guest
 
Posts: n/a
Default Re: Data entry in Upper Case

Set the form's (you are using a form for data entry, right) control(s)
Format property to ">". There is also an Upper() function to convert all
text strings to caps. Do you really want all entry in upper case? That
tends to be hard to read. Remember, you can format text to Upper, Lower,
Proper, etc. for display on screen or printed reports, regardless of the
actual entry values.
-Ed

"Matuag" <matuag@gmail.comwrote in message
news:1180201473.589368.190580@g37g2000prf.googlegr oups.com...
Quote:
How can I enable Caps Lock after the form or database opens?
>

  #4  
Old May 27th, 2007, 02:45 AM
missinglinq via AccessMonster.com
Guest
 
Posts: n/a
Default Re: Data entry in Upper Case

In a new standard module place this code:

'**************** Code Start ************************
'Windows API/Global Declarations for :CapLock
'************************************************* ******
Public Const VK_CAPLOCK = &H14

Public Type KeyboardBytes
kbByte(0 To 255) As Byte
End Type
Public kbArray As KeyboardBytes

Public Declare Function GetKeyState Lib "user32" _
(ByVal nVirtKey As Long) As Long
Public Declare Function GetKeyboardState Lib "user32" _
(kbArray As KeyboardBytes) As Long
Public Declare Function SetKeyboardState Lib "user32" _
(kbArray As KeyboardBytes) As Long
'************** Code End ****************

When prompted name the module ControlCapsLock


In the On_Load sub of the first form in your db that is used place this code:

'********** Code Start ****************
'Turn Capslock On
GetKeyboardState kbArray
kbArray.kbByte(VK_CAPLOCK) = 1
SetKeyboardState kbArray
'********** Code End *****************


In the last form before closing your db, place this code in the Form_Unload
event:

'************ Code Start *****************
'Turn Capslock OFF
GetKeyboardState kbArray
kbArray.kbByte(VK_CAPLOCK) = 0
SetKeyboardState kbArray
'*********** Code End ********************

Good Luck!

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200705/1

  #5  
Old May 28th, 2007, 01:55 PM
Matuag
Guest
 
Posts: n/a
Default Re: Data entry in Upper Case

On May 27, 7:43 am, "missinglinq via AccessMonster.com" <u28780@uwe>
wrote:
Quote:
In a new standard module place this code:
>
'**************** Code Start ************************
'Windows API/Global Declarations for :CapLock
'************************************************* ******
Public Const VK_CAPLOCK = &H14
>
Public Type KeyboardBytes
kbByte(0 To 255) As Byte
End Type
Public kbArray As KeyboardBytes
>
Public Declare Function GetKeyState Lib "user32" _
(ByVal nVirtKey As Long) As Long
Public Declare Function GetKeyboardState Lib "user32" _
(kbArray As KeyboardBytes) As Long
Public Declare Function SetKeyboardState Lib "user32" _
(kbArray As KeyboardBytes) As Long
'************** Code End ****************
>
When prompted name the module ControlCapsLock
>
In the On_Load sub of the first form in your db that is used place this code:
>
'********** Code Start ****************
'Turn Capslock On
GetKeyboardState kbArray
kbArray.kbByte(VK_CAPLOCK) = 1
SetKeyboardState kbArray
'********** Code End *****************
>
In the last form before closing your db, place this code in the Form_Unload
event:
>
'************ Code Start *****************
'Turn Capslock OFF
GetKeyboardState kbArray
kbArray.kbByte(VK_CAPLOCK) = 0
SetKeyboardState kbArray
'*********** Code End ********************
>
Good Luck!
>
--
There's ALWAYS more than one way to skin a cat!
>
Answers/posts based on Access 2000
>
Message posted via AccessMonster.comhttp://www.accessmonster.com/Uwe/Forums.aspx/databases-ms-access/2007...
Thanks

  #6  
Old May 28th, 2007, 02:45 PM
missinglinq via AccessMonster.com
Guest
 
Posts: n/a
Default Re: Data entry in Upper Case

Glad to help!

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000

Message posted via http://www.accessmonster.com

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.