Inital Caps

G

Guest

I have tables that were pulls (imported) from Excel. Most of the data is
either Initial Caps or ALL CAPS. I want to make them all Initial Caps.

There is no data entry involved. As the data is already there. Plus if
there is any new data I want to force them to type in Inital Caps and NOT ALL
CAPS.

How can I do this?
 
R

Rick Brandt

melwester said:
I have tables that were pulls (imported) from Excel. Most of the
data is either Initial Caps or ALL CAPS. I want to make them all
Initial Caps.

There is no data entry involved. As the data is already there.
Plus if there is any new data I want to force them to type in Inital
Caps and NOT ALL CAPS.

How can I do this?

You can run a one-time update query to fix all existing data...

UPDATE TableName
SET [TableName]![FieldName] = strConv([TableName]![FieldName], 3)

For new entries about all you can do is use the AfterUpdate event of each
form control since I don't think there is any InputMask that can apply
Proper Case (plus InputMasks are evil :)).

Me.ControlName = strConv(Me.ControlName, 3)
 
T

Tom

Remember it doesn't do mcDonalds and other annoying cases correct.

Rick Brandt said:
melwester said:
I have tables that were pulls (imported) from Excel. Most of the
data is either Initial Caps or ALL CAPS. I want to make them all
Initial Caps.

There is no data entry involved. As the data is already there.
Plus if there is any new data I want to force them to type in Inital
Caps and NOT ALL CAPS.

How can I do this?

You can run a one-time update query to fix all existing data...

UPDATE TableName
SET [TableName]![FieldName] = strConv([TableName]![FieldName], 3)

For new entries about all you can do is use the AfterUpdate event of each
form control since I don't think there is any InputMask that can apply
Proper Case (plus InputMasks are evil :)).

Me.ControlName = strConv(Me.ControlName, 3)
 
M

Mike Labosh

Remember it doesn't do mcDonalds and other annoying cases correct.

Ding.

As an example, here's an *actual contact name* that came to me in an import
file"

"ATTN Mr Maj @#$%^* }{ Gen.Robert (Bob) Stevens van ter Hoffen-Schlager
Sr. MD, Computer Guy"

Put *that* in your pipe and parse it! (grrrr)
--
Peace & happy computing,

Mike Labosh, MCSD
"Working here is like living inside a Salvador Dali painting." -- Me. Yeah,
ME! [Oh fer cryin out loud]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Table set up 5
Field formatting 3
Formatting inital caps 2
global text change 3
Formatting Labels 2
Initial Caps Problem 6
Caps Lock Indicator 3
Caps Lock 2

Top