Solved

Convert Uppercase to Mixed Case

Posted on 2011-03-24
11
395 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
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Access MVP) 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

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.  

Question has a verified solution.

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

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

831 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