Solved

SQL to convert to upper case

Posted on 2008-10-27
8
2,917 Views
Last Modified: 2012-06-21
I need to convert a text in a field called "Bin" to upper case.  I am using Access 20007 front-end and SQL 2005 backend.   Example:
  Table - Inventory, Bin=abc
After convertion:
  Table - Inventory, Bin=ABC
0
Comment
Question by:schmir1
8 Comments
 
LVL 60

Expert Comment

by:chapmandew
Comment Utility
select BIN = upper(bin), otherfields
from yourtablename
0
 
LVL 75

Expert Comment

by:DatabaseMX (Joe Anderson - Access MVP)
Comment Utility
SELECT BIN = UCase(BIN)
FROM YourTableName

mx
0
 
LVL 82

Expert Comment

by:hielo
Comment Utility
Try:
SELECT UCase(BIN) as bin FROM Inventory
0
 
LVL 60

Assisted Solution

by:chapmandew
chapmandew earned 100 total points
Comment Utility
If you're doing at the backend level, then you'll need to use UPPER.  If you're doing it at the front-end in Access, then you'll need to use UCASE.
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 75

Expert Comment

by:DatabaseMX (Joe Anderson - Access MVP)
Comment Utility
UPDATE Table1 SET Table1.BIN= UCase([BIN]);

Make a backup first.

mx
0
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Access MVP) earned 300 total points
Comment Utility
UPDATE Inventory SET Inventory.BIN= UCase([BIN]);
0
 
LVL 44

Assisted Solution

by:GRayL
GRayL earned 100 total points
Comment Utility
Update Inventory SET Bin = UCase(Bin);
0
 

Author Comment

by:schmir1
Comment Utility
I used the Update Query because I want the changes saved.  I used the Access version but it is good to know the SQL 2005 version.  Thanks for all your help.
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

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…
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
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.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

762 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now