Fix Access Changing LIKE to ALIKE and Ignoring Asterisk Wildcards
Question details
Users need to resolve an issue where their database queries automatically change the LIKE operator to ALIKE and fail to recognize the standard asterisk (*) wildcard.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- Writing, running, or modifying SQL queries in database design view.
- Observed behavior
- The system automatically replaces 'LIKE' with 'ALIKE' in the query criteria, causing standard wildcard characters like the asterisk (*) to be ignored and return blank or incorrect results.
Ensure all active database objects, such as open queries, tables, and forms, are completely closed before attempting to modify query design settings.
Disable SQL Server Compatible (ANSI-92) Syntax
Turning off this setting restores the standard Access SQL syntax, allowing the LIKE operator and asterisk wildcard to function normally.
Microsoft Access uses ANSI-89 as its default SQL syntax, which relies on the asterisk (*) wildcard. When SQL Server Compatible Syntax (ANSI-92) is enabled, Access strictly adheres to SQL Server standards, replacing LIKE with ALIKE and breaking standard wildcards.
Click on 'File' in the top left corner of the ribbon and select 'Options' from the bottom of the menu.
In the Access Options dialog box, click on 'Object Designers' in the left-hand navigation pane.
Scroll down to the 'Query Design' section. Locate and clear the checkbox next to 'SQL Server Compatible Syntax (ANSI 92)' for the current database.
Click 'OK' to apply the changes. Reopen your query in Design View; you can now use the standard LIKE operator with the asterisk (*) wildcard.

Use the Percent Sign (%) Wildcard Instead
If your database requires ANSI-92 syntax to remain enabled for compatibility, you must adapt your wildcard characters to match SQL Server standards.
Import Objects into a New Database
If the ANSI-92 setting is greyed out and cannot be disabled in your current file, migrate your data to a new database file to reset the settings.
Looking for a Lightweight, Compatible Office Suite?
While specific database queries require Microsoft Access, you can handle all your daily document, spreadsheet, and presentation needs with WPS Office. It provides a highly compatible, free alternative to Microsoft Office for your core productivity tasks.
- 1. Visit the Website: Go to the official WPS website to download the free installer for your operating system.
- 2. Install WPS Office: Run the installer and follow the simple on-screen instructions to set up the software.
- 3. Open Your Files: Double-click your existing Office documents to open them perfectly formatted in WPS Office.

Frequently Asked Questions
What is ANSI-92 syntax in Microsoft Access?
ANSI-92 is a standard SQL syntax that aligns Microsoft Access more closely with Microsoft SQL Server. When enabled, it alters standard Access operators and wildcards, requiring the use of ALIKE and the percent sign (%) instead of LIKE and the asterisk (*).
Why is the SQL Server Compatible Syntax option greyed out?
This option is often disabled if the database was specifically created with ANSI-92 as the default, or if it utilizes specific SQL Server connections that mandate this standard. Migrating to a fresh database file usually bypasses this restriction.
Can I use both the asterisk (*) and percent (%) wildcards in the same database?
No, the wildcard you use depends entirely on the active syntax setting for that specific database file. You must use the asterisk (*) for standard Access SQL (ANSI-89) and the percent sign (%) for SQL Server Compatible Syntax (ANSI-92).




