Like Converts to ALike in Query

G

Guest

Hello,

Not sure if anyone has seen this but I have a dB that
will no longer perform parameter based queries using the
LIKE keyword. Instead it changes it to ALike and cannot
be saved or run in anything other than ALike. Even if I
correct the SQL code to Like it corrupts to ALike. I've
created other dB since this first started occurring and
all are doing the same thing yet dB created prior to this
event still perform a "Like" keyword selection.

Is this something unusual or have I missed an M$ upgrade
somewhere?

Help!
 
M

Michel Walsh

Hi,


Like and ALike difference SHOULD be about the wild card characters you use,
the DOS ones, ? and *, or the UNIX ones, _ and % . I *think* it is there to
help to explicitly mention what you want to use without having to relay the
Options (Tools | Options..."| Tables/Queries, Compatible Syntax ANSI-92 )
when you are outside Access "reach", but still under JET (such as in
validation rules definition). See Access 2002 help file under "Examples of
field validation rules (MDB)".



Hoping it may help,
Vanderghast, Access MVP
 
G

Guest

Thank you very much.....that did the trick. I had to
uncheck the SQL Server Compatible Syntax(Ansi92) in the
option for the dB. It's rather odd that the switch would
have been made without my knowledge but perhaps that's
best left for another question.

Once again, thank you!!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top