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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Test for Lowercase in Query 1

Status
Not open for further replies.

Moss100

Technical User
Aug 10, 2004
586
GB
Hello this is a similar question to my previous one regarding problems with null / empty cells

In the query I would like to show whether a field ([AccountName]) contains lowercase characters.

The code I have works when the field has an empty string, but not when null.

My code is as follows:

CheckAccountName: StrComp(UCase([AccountName]),[AccountName],0)

Could someone suggest a more robust approach?

Many thanks Mark
 
The code I have works when the field has an empty string, but not when null." - I would try this:

Code:
CheckAccountName: StrComp(UCase(AccountName [blue]& ""[/blue]), AccountName [blue]& ""[/blue], 0)


---- Andy

There is a great need for a sarcasm font.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top