Re: Like operator with accented character
- From: John Vinson <jvinson@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 22 Jan 2006 15:00:43 -0700
On Sun, 22 Jan 2006 20:57:34 -0000, "John" <John@xxxxxxxxxxxxxxxxxxxx>
wrote:
>Hi
>
>I am using Like "*[!-!0-9A-Z &,.@/'():+]*" in my select query to exclude all
>characters listed but the query also excludes accented characters? Is there
>a way that accented characters are not included in this filter?
Yes. The ASCII value for accented characters is is different than the
non-accented characters: é is 233, e is 65.
I'm not certain how the LIKE operator handles upper vs. lower case (e
and E are different ASCII values as well), but try
Like "*[!-!0-9A-ZÀ-Ý &,.@/'():+]*"
You may want to use some VBA code to include the characters you want
to include, rather than excluding the thousands of possible Unicode
characters that might get typed by imaginative users. ?å?ï?fæç?ò?ÿ?
John W. Vinson[MVP]
.
- Follow-Ups:
- Re: Like operator with accented character
- From: John
- Re: Like operator with accented character
- From: John
- Re: Like operator with accented character
- References:
- Like operator with accented character
- From: John
- Like operator with accented character
- Prev by Date: Re: create new expression?field? in a query based on two fields
- Next by Date: Re: functions in queries
- Previous by thread: Re: Like operator with accented character
- Next by thread: Re: Like operator with accented character
- Index(es):
Relevant Pages
|