upper case

  • Thread starter Thread starter Jean-Paul De Winter
  • Start date Start date
J

Jean-Paul De Winter

Hi,
I have an entryfield... when I enter a value (letter-characters) I would
like to see everything in uppercase, so no lower case allowed.
How can I do this?
Thanks
JP
 
Hi,
I have an entryfield... when I enter a value (letter-characters) I would
like to see everything in uppercase, so no lower case allowed.
How can I do this?
Thanks
JP


Code the control's AfterUpdate event:
[ControlName] = UCase([ControlName])

Enter the data normally. When you exit the control it will change to
Upper Case.
 
I would like to get the characters in upper case while I type them... is
that possible?
Thansk
JP
fredg said:
Hi,
I have an entryfield... when I enter a value (letter-characters) I would
like to see everything in uppercase, so no lower case allowed.
How can I do this?
Thanks
JP


Code the control's AfterUpdate event:
[ControlName] = UCase([ControlName])

Enter the data normally. When you exit the control it will change to
Upper Case.
 
Using Fred's code will ensure the data is stored in uppercase.

To show Uppercase when entering data set the FORMAT property of your
entryfield to >
is the less than symbol and is used to display the input in uppercase
after a lowercase letter is entered.

--
Allan Murphy
Email: (e-mail address removed)

Jean-Paul De WInter said:
I would like to get the characters in upper case while I type them... is
that possible?
Thansk
JP
fredg said:
Hi,
I have an entryfield... when I enter a value (letter-characters) I would
like to see everything in uppercase, so no lower case allowed.
How can I do this?
Thanks
JP


Code the control's AfterUpdate event:
[ControlName] = UCase([ControlName])

Enter the data normally. When you exit the control it will change to
Upper Case.
 
Jean-Paul De WInter said:
I would like to get the characters in upper case while I type them...
is that possible?

In the KeyPress event...

KeyAscii = Asc(UCase(Char(KeyAscii)))
 
Hi, thanks for the reply
Whe I try to use you code I get an errormessage saying:

compiling error
sub or function not defined

in the code
KeyAscii = Asc(UCase(Char(KeyAscii)))

Char is highlighted in blue

What to do?
Thanks
JP, Belgium
 
Back
Top