Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Convert Uppercase to Mixed Case

Posted on 2011-03-24
11
Medium Priority
?
431 Views
Last Modified: 2013-11-05
I have data in a column that is Uppercase.  I want it to be mixed case.  Example:

SMITH - should be Smith
JONES - should be Jones

Is there a query I can run against my data that would convert it all?

table name = tblPeople
table field = txtLastName
0
Comment
Question by:gcgcit
  • 5
  • 3
  • 3
11 Comments
 
LVL 44

Assisted Solution

by:GRayL
GRayL earned 800 total points
ID: 35210015
StrConv("MY STRING",3)  produces My String
0
 
LVL 75
ID: 35210020
Make a BACKUP first, then try this:

UPDATE Table1 SET Table1.YourField = StrConv([YourField],3);


mx
0
 
LVL 44

Expert Comment

by:GRayL
ID: 35210032
UPDATE tblPeople SET txtLastName = StrConv(txtLastName,3);
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform) earned 1200 total points
ID: 35210035
Specifically

UPDATE tblPeople SET tblPeople.txtLastName= StrConv([txtLastName],3);
0
 

Author Comment

by:gcgcit
ID: 35210150
How can I do this in query builder?

I made it an update query.

Fieldname: txtLastName
Table: tblPeople
Update To: StrConv([txtLastName],3)

But it prompts me with a message box asking for a value of txtLastName when I try to run it.
0
 

Author Comment

by:gcgcit
ID: 35210168
Ignore that last note, it was a typo on my part!  Got it to work thanks guys!
0
 

Author Closing Comment

by:gcgcit
ID: 35210186
Gave slightly more points to DatabaseMX because GrayL's syntax was off for a table - its not " " but [ ] also DatabaseMX suggested making a backup which I'm glad I did because the first time I toasted my data with the " ".  Thanks to both of you for such a quick response! :)
0
 
LVL 44

Expert Comment

by:GRayL
ID: 35210237
Correction - my syntax was correct as long the name did not contain spaces or any 'strange' characters - underlines excepted.
0
 
LVL 75
ID: 35210248
You are welcome.  ALWAYS  ... make a backup first before running Action queries presented here or elsewhere :-)

mx
0
 
LVL 44

Expert Comment

by:GRayL
ID: 35210257
In the StrConv() example, "MY STRING" was a variable - not the name of a field.
0
 
LVL 44

Expert Comment

by:GRayL
ID: 35210268
Thanks, glad to help.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question