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

x
?
Solved

Changing all caps to initial caps in Access

Posted on 2010-08-26
7
Medium Priority
?
696 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
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 49

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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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

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

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
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.
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: …

963 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