473,383 Members | 1,885 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Changing Text to Uppercase

I can change a field to upper case by using the after event function
and the following code

Me.[My Field] = UCase(Me.[My Field])

But how can you do it so that the whole form will change to Uppercase,
there are 20 fields on this form, and I would have to do the above for
all of them. There must be a faster way.

Anybody know the answer

Jul 3 '06 #1
6 9867
"feeman" <fe*********@feehally128.karoo.co.ukwrote in
news:11**********************@h44g2000cwa.googlegr oups.com:
I can change a field to upper case by using the after event
function and the following code

Me.[My Field] = UCase(Me.[My Field])

But how can you do it so that the whole form will change to
Uppercase, there are 20 fields on this form, and I would have
to do the above for all of them. There must be a faster way.

Anybody know the answer
What excuse did you invent for having everything in uppercase?

Will you be the only user of this database?

Think about that, then if you still absolutely insist upon doing
this horrible thing, select all 20 controls, then set teh input
mask property to which will do the dirty deed.

--
Bob Quintal

PA is y I've altered my email address.

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

Jul 3 '06 #2
AP
Here is how I would go about doing it. Put this in the forms module and
maybe on the after update of the form.

Dim ctl As Control
For Each ctl In Me.Form.Controls 'Me.Report.Controls
With ctl
If TypeOf ctl Is TextBox Then
ctl.Value = UCase(ctl.Value)
End If
End With
Next

Set ctl = Nothing

Let me know if you have any questions.
AP
www.megacrosstab.com

feeman wrote:
I can change a field to upper case by using the after event function
and the following code

Me.[My Field] = UCase(Me.[My Field])

But how can you do it so that the whole form will change to Uppercase,
there are 20 fields on this form, and I would have to do the above for
all of them. There must be a faster way.

Anybody know the answer
Jul 3 '06 #3
"Bob Quintal" <rq******@sPAmpatico.cawrote
What excuse did you invent for
having everything in uppercase?
Maybe all the input comes from an IBM 026 keypunch?

Jul 4 '06 #4

Larry Linson wrote:
"Bob Quintal" <rq******@sPAmpatico.cawrote
What excuse did you invent for
having everything in uppercase?

Maybe all the input comes from an IBM 026 keypunch?
It was not an excuse it was asked by the people who use the database,
as the catolgue numbers and information are all in uppercase, so if
they forget to put the caps lock on you have some in lower and some in
upper, it is more for appearance on reports for them I think.

Not My Idea, just trying to please the people that pay the wages.

Jul 4 '06 #5
"feeman" <fe*********@feehally128.karoo.co.ukwrote in
news:11**********************@v61g2000cwv.googlegr oups.com:
>
Larry Linson wrote:
>"Bob Quintal" <rq******@sPAmpatico.cawrote
> What excuse did you invent for
having everything in uppercase?

Maybe all the input comes from an IBM 026 keypunch?

It was not an excuse it was asked by the people who use the
database, as the catolgue numbers and information are all in
uppercase, so if they forget to put the caps lock on you have
some in lower and some in upper, it is more for appearance on
reports for them I think.

Not My Idea, just trying to please the people that pay the
wages.
I've always loved the uppercase numbers !@#$%^&*().
Some fields should always be capitalized. Forcing other data to
uppercase just creates more problems that it's worth, and it's
ugly and hard to read, as well.

--
Bob Quintal

PA is y I've altered my email address.

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

Jul 4 '06 #6
feeman wrote:
Larry Linson wrote:
"Bob Quintal" <rq******@sPAmpatico.cawrote
What excuse did you invent for
having everything in uppercase?
Maybe all the input comes from an IBM 026 keypunch?

It was not an excuse it was asked by the people who use the database,
as the catolgue numbers and information are all in uppercase, so if
they forget to put the caps lock on you have some in lower and some in
upper, it is more for appearance on reports for them I think.

Not My Idea, just trying to please the people that pay the wages.
There are legitimate reasons to want storage in all caps. Much of the server
data that I write apps against is in an IBM AS400. Not only is much of the data
entered via terminal programs that use all upper case, but UDB400 (the database
on the AS400) is a case sensitive database.

If mixed case entry is allowed then I either have to use an inefficient query
criteria by texting against an expression that converts the fields to upper case
or I have to tell users that all text searches are case sensitive and they might
have to try various combinations of case to find their data. Neither of these
is acceptable on the larger tables so I make sure that all text is stored in
upper case.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
Jul 4 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Mark | last post by:
Hi, Im trying to validate a form, all the validating works apart from one field. This particular field must consist of the first 2 characters as letters, & the following 5 as numbers. And if it...
8
by: Mike S. Nowostawsky | last post by:
I tried using the "toUpperCase()" property to change the value of an array entity to uppercase BUT it tells me that the property is invalid. It seems that an array is not considered an object when...
10
by: evanburen | last post by:
I'm trying to text the text inside id="DirectorsCaption" within the hideDirectors() and showDirectors() functions but it's not working. I'm trying different variations using .innerHTML but with no...
13
by: amykimber | last post by:
Hi all, I know I'm doign something really daft, but I can't get this to work... I have a form with a bunch of inputs called ship_owner - why the ? Because I'm submitting this page though php...
4
by: Angela | last post by:
Hello How would one auto validate using the 'onchange' method a text box for invalid entries? Invalid entries would include: 1. Input string of '....' 2. Input string of 'aaaa' 2. Check...
3
by: =?Utf-8?B?Sm9zZXBo?= | last post by:
Hi all, I'd like to know how to force uppercase characters in an ASP.Net web form text field. Thanks
1
by: mkk572ny | last post by:
Hi, I was wondering if anyone could help me to create a java method to changing the uppercase letters to lowercase and visa versa in a string using a for-loop. Thanks.
12
by: jackson.rayne | last post by:
Hello, I am a javascript newbie and I'm stick at one place. I have a requirement where I will get a sentence in a variable example var v1 ="This is a sentence"
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.