John/John/Tom:
In like [!A-Z] does exclude for example é (e with accent) but not in
[!A-DF-Z]. I don't know how to tell access to treat é differently from e
or
E in the query. Any ideas?
On my system (UK regional settings), Like *does* treats accented
characters differently from the unaccented equivalents, e.g.:
?"a" like "[!A-Z]"
False
?"á" like "[!A-Z]"
True
?"E" like "[!A-Z]"
False
?"É" like "[!A-Z]"
True
?"É" like "E"
False
So I think we must be at cross purposes, or else have different regional
settings (see what I've posted about Option Compare Text and Locale
elsewhere in this thread and your other one).
With English-speaking regional settings, there seems no way of getting
Like to match accented characters with their unaccented counterparts.
The VBScript regular expression engine, which is often an alternative,
doesn't help here (though the more modern engines in Perl and .NET take
it in their stride).
So you'll have to provide Like with either a character class that
specifies the acceptable characters, or a negated (i.e. [!...]) class
that specifies the unacceptable ones, using multiple ranges within the
class, e.g this, which i think copes with most western European
languages.
[!0-9A-ZÀ-ÏÑ-Ýß]
But you'll need to test using your fonts/character sets and data. I
think someone has already recommended charmap.exe.