Office Settings & Configuration

Fix Access Changing LIKE to ALIKE and Ignoring Asterisk Wildcards

Nimra MalikNimra Malik Nov 3, 2026 871 views

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.

How to Fix Access LIKE Query Changing to ALIKE and Ignoring Asterisk Wildcards
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.
Before you start

Ensure all active database objects, such as open queries, tables, and forms, are completely closed before attempting to modify query design settings.

Solution 1Recommended

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.

1
Open Access Options

Click on 'File' in the top left corner of the ribbon and select 'Options' from the bottom of the menu.

2
Navigate to Object Designers

In the Access Options dialog box, click on 'Object Designers' in the left-hand navigation pane.

3
Modify Query Design Settings

Scroll down to the 'Query Design' section. Locate and clear the checkbox next to 'SQL Server Compatible Syntax (ANSI 92)' for the current database.

4
Save and Reopen

Click 'OK' to apply the changes. Reopen your query in Design View; you can now use the standard LIKE operator with the asterisk (*) wildcard.

Disable SQL Server Compatible (ANSI-92) Syntax
Syntax Restored: Your queries will now correctly process the standard asterisk wildcard without forcing the ALIKE operator.
Free Microsoft Office alternative

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. 1. Visit the Website: Go to the official WPS website to download the free installer for your operating system.
  2. 2. Install WPS Office: Run the installer and follow the simple on-screen instructions to set up the software.
  3. 3. Open Your Files: Double-click your existing Office documents to open them perfectly formatted in WPS Office.
Fully compatible with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx).Lightweight installation that runs smoothly on almost any device or operating system.Familiar, tabbed user interface ensures a seamless migration with zero learning curve.Advanced spreadsheet tools for comprehensive data analysis and filtering.
microsoft office alternative - 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).