Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Changing all caps to initial caps in Access

Posted on 2010-08-26
7
Medium Priority
?
690 Views
Last Modified: 2012-05-10
I have some Access tables that are in all caps and I would like to change them to inital caps only. Is there a query I can run which will accomplish this? I would perfer to create the query using design view than sql and I am a novice at sql. If it must be done is sql, I will need to know where to paste the code so I can run the query. Sorry for being ignorant.
0
Comment
Question by:pstewartrrm
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 48

Expert Comment

by:Dale Fye
ID: 33532815
Try the strConv function

Depending on what you want to do, this can be problematic.
0
 
LVL 77

Expert Comment

by:peter57r
ID: 33532822
In a new query paste this into the sql view.
You need to modify it to use your own table and fieldname.

Update mytable set myfield= strconv(myfield, 3)
0
 

Author Comment

by:pstewartrrm
ID: 33535266
My table I want to update is called tbl_1979_test and the field is called lname. Is this what I paste into
the sql window? I tried it and it did not work.

SELECT tbl_1979_test
Update tbl_1979_test  set fname = strconv(fname, 3)

I actually would like to update all the fields in the table. Can this be done globally?
0
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 
LVL 14

Accepted Solution

by:
ldunscombe earned 2000 total points
ID: 33538546
In query design view select your table and drag the field you want to update to the grid.
Change the query type to an Update Query.  You will get an additional row in the grid for update to.
In the update to row of each field you want to update put
= strconv([NameOfTheField],3)
obviously change [NameOfTheField] to the actual name of the field.
Hope this helps.
Leigh
0
 
LVL 14

Expert Comment

by:ldunscombe
ID: 33538561
See attached image
CapsQuery.gif
0
 
LVL 77

Expert Comment

by:peter57r
ID: 33539797
Leigh has now shown you what to do but I'll answer the previous Qs anyway..

"Is this what I paste into
the sql window? I tried it and it did not work.

SELECT tbl_1979_test
Update tbl_1979_test  set fname = strconv(fname, 3)"
There was no Select clause in what i posted before and none is required.; you just use the second line, as you will see if you look at the sql produced by Leigh's answer.


"I actually would like to update all the fields in the table. Can this be done globally?"
Not in a query.
If this is a once-off exercise, open the table and use the find and replace option from the menu.

0
 

Author Closing Comment

by:pstewartrrm
ID: 33540882
Bingo!

Thanks.
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

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
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.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

715 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