FIX: 'Syntax error in query' with Parameterized LIKE QueriesLast reviewed: September 18, 1997Article ID: Q138985 |
2.00 2.10 2.20
WINDOWS NT
kbinterop kbbuglist kbfixlist
The information in this article applies to:
SYMPTOMSWhen using a parameterized query that uses the LIKE keyword with the 2.0 ODBC Desktop drivers, the following error message may appear:
Syntax error in query expression. CAUSEThis is a result of a bug in the 2.0 Microsoft 32-bit ODBC Desktop drivers.
RESOLUTIONThe only option when using the 2.0 desktop drivers is to use the LIKE keyword without any parameterization. Instead of using the Requery() function, call the Close() and Open() member functions of the CRecordset class to make the changes in the query. This bug is fixed in the 3.0 Microsoft ODBC Desktop drivers, so another option is to upgrade from the 2.0 desktop drivers to the 3.0 desktop drivers.
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This problem was corrected in the 32-bit Microsoft ODBC Desktop Drivers version 3.0.
|
Additional reference words: 2.00 2.10 2.20 3.00 3.10 3.20
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |