How to Fix Access Error 3131 Syntax Error in the FROM Clause
Question details
The user needs to resolve syntax error 3131 in the FROM clause when running a Microsoft Access query that joins multiple tables.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- Grouping query results by year and month while joining several tables by a shared identifier (BatchID).
- Observed behavior
- The query fails to execute, returning a 'Syntax error in FROM clause' (Error 3131) because Access does not recognize standard multi-table JOIN formatting.
Back up your Microsoft Access database before modifying structural SQL queries, and ensure you test your new syntax in the SQL View to isolate the issue.
Use Nested Parentheses for Multiple JOIN Statements
Fix the structural syntax by wrapping multiple JOIN operations in nested parentheses, which is explicitly required by the Access database engine.
Unlike standard SQL engines like SQL Server or MySQL, Microsoft Access processes JOIN statements in strict pairs. If you are joining more than two tables, you must group the JOIN statements using nested parentheses.
Using square brackets will not resolve this structural issue, as brackets are only meant to escape table or column names containing spaces.
Right-click the problematic query in the Microsoft Access Navigation Pane and select 'SQL View' to edit the raw query text.
Find the section of your SQL statement starting with 'FROM' where the multiple tables (e.g., Pressed, Filtering, Racking, Bottling) are linked.
Wrap the first join operation in parentheses, then wrap the result and the next join in another set of parentheses. For example: FROM (((Pressed INNER JOIN Filtering ON Pressed.BatchID = Filtering.BatchID) INNER JOIN Racking ON Pressed.BatchID = Racking.BatchID) INNER JOIN Bottling ON Pressed.BatchID = Bottling.BatchID).
Click the 'Run' button (the red exclamation mark) on the Query Design tab to execute the query and verify that Error 3131 no longer appears.

Looking for a Lightweight and Free Office Suite?
While Microsoft Access requires strict SQL formatting for database management, you may also need a reliable, cost-effective solution for your daily document, spreadsheet, and presentation tasks. WPS Office is a powerful, free alternative that offers a smooth workflow and full compatibility.
- 1. Download the Installer: Visit the official WPS Office website and download the free installer for your operating system.
- 2. Install the Suite: Run the setup file and follow the quick installation prompts to configure WPS Office on your device.
- 3. Open Your Documents: Launch the application to effortlessly create or edit your existing Office files and exported database reports.

Frequently Asked Questions
Why does Microsoft Access require parentheses for multiple joins?
The Access database engine (ACE/JET) evaluates joins in pairs. It requires parentheses to explicitly define the logical execution order of the table linkages, whereas standard SQL engines determine the optimal execution plan automatically without needing manual grouping.
Can I use square brackets instead of parentheses to fix Error 3131?
No. Square brackets in Access SQL are exclusively used to enclose table or column names that contain spaces or special characters. They do not establish the logical grouping of JOIN operations required to clear syntax errors.
Does Error 3131 occur with all types of SQL joins in Access?
Yes. Error 3131 can occur with INNER JOIN, LEFT JOIN, or RIGHT JOIN. Any query that attempts to link three or more tables in the FROM clause without the properly nested parenthesis structure will trigger this error.




