A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

help with finding lowercase characters in table



 
 
Thread Tools Display Modes
  #1  
Old November 25th, 2009, 05:22 AM posted to microsoft.public.access.queries
joe_G
external usenet poster
 
Posts: 7
Default help with finding lowercase characters in table

Hi,

I have table with 5 columns - one of which is Last Name - and I need
to pull all last names that are in lowercase. The table has 10,000
records and the last name field should look like SMITH, but some of
the records are listed as smith. What query can I run in access on the
LAST NAME field to pull only records where the LAST NAME = lowercase.
  #2  
Old November 25th, 2009, 07:05 AM posted to microsoft.public.access.queries
Benjamins via AccessMonster.com
external usenet poster
 
Posts: 68
Default help with finding lowercase characters in table

Hi Joe_G,

You can create a query for this

Select LastName, LCase(LaseName) as LCLaseName, Strcomp(LastName, LCLaseName,
0) as CompareWord From [Table]

After that you create 1 query to filter the above query where CompareWord =
0. this will allow to display all the name with LowerCase

joe_G wrote:
Hi,

I have table with 5 columns - one of which is Last Name - and I need
to pull all last names that are in lowercase. The table has 10,000
records and the last name field should look like SMITH, but some of
the records are listed as smith. What query can I run in access on the
LAST NAME field to pull only records where the LAST NAME = lowercase.


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...eries/200911/1

  #3  
Old November 25th, 2009, 01:29 PM posted to microsoft.public.access.queries
John Spencer
external usenet poster
 
Posts: 7,815
Default help with finding lowercase characters in table

Or just run an update query to change every LastName to ALL upper case

UPDATE [YourTable]
SET LastName = UCase(LastName)
WHERE LastName is Not Null


John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County

Benjamins via AccessMonster.com wrote:
Hi Joe_G,

You can create a query for this

Select LastName, LCase(LaseName) as LCLaseName, Strcomp(LastName, LCLaseName,
0) as CompareWord From [Table]

After that you create 1 query to filter the above query where CompareWord =
0. this will allow to display all the name with LowerCase

joe_G wrote:
Hi,

I have table with 5 columns - one of which is Last Name - and I need
to pull all last names that are in lowercase. The table has 10,000
records and the last name field should look like SMITH, but some of
the records are listed as smith. What query can I run in access on the
LAST NAME field to pull only records where the LAST NAME = lowercase.


  #4  
Old November 25th, 2009, 04:12 PM posted to microsoft.public.access.queries
joe_G
external usenet poster
 
Posts: 7
Default help with finding lowercase characters in table

On Nov 25, 8:29*am, John Spencer wrote:
Or just run an update query to change every LastName to ALL upper case

UPDATE [YourTable]
SET LastName = UCase(LastName)
WHERE LastName is Not Null

John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County



Benjamins via AccessMonster.com wrote:
Hi Joe_G,


You can create a query for this


Select LastName, LCase(LaseName) as LCLaseName, Strcomp(LastName, LCLaseName,
0) as CompareWord From [Table]


After that you create 1 query to filter the above query where CompareWord *=
0. this will allow to display all the name with LowerCase


joe_G wrote:
Hi,


I have table with 5 columns - one of which is Last Name - and I need
to pull all last names that are in lowercase. The table has 10,000
records and the last name field should look like SMITH, but some of
the records are listed as smith. What query can I run in access on the
LAST NAME field to pull only records where the LAST NAME = lowercase..- Hide quoted text -


- Show quoted text -


Hi,

Thank you for the reply; I will try these options out

thanks,
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:21 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.