Solved

Convert Uppercase to Mixed Case

Posted on 2011-03-24
11
400 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 200 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
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform) earned 300 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

830 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