Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding UPPERCASE records in a query 1

Status
Not open for further replies.

AllanBowker

IS-IT--Management
Aug 8, 2001
57
GB
I have a list of company names in a database

ABC Co Ltd
Widgets R Us
FRED BLOGGS & SON
Wonderstuff World
THE MODEL SHOP
Vicks Vans
TIMEPIECES

How could I create a query that would remove all companies that have a name that is completely in uppercase but leave the records that are in propercase alone?

i.e. Delete
FRED BLOGGS & SON
THE MODEL SHOP
TIMEPIECES

Thus leaving
ABC Co Ltd
Widgets R Us
Wonderstuff World
Vicks Vans

FIRST ANSWER THAT SOLVES MY PROBLEM GETS A STAR !

 
Hi,

You can use a public function in a module then use this delete query:

DELETE table1.Name, IsUpCase([Name]) AS UpCase
FROM table1
WHERE (((IsUpCase([Name]))=True));

Have a good one!
BK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top