Data Import & Export

Fix Excel ODBC Query Not Showing Updated Data After Refresh

Adam DavisAdam Davis Oct 16, 2026 869 views

Question details

The user's Excel ODBC query using a LEFT JOIN continues to display old or empty results even after updating the source workbooks and executing a query refresh.

Product
Microsoft Excel
Device & OS
not provided
Scenario
Updating source data workbooks and attempting to refresh an existing ODBC SQL query with a LEFT JOIN to pull the latest information into Excel.
Observed behavior
The query results fail to update, displaying stale data or empty fields instead of the recently added information from the source workbooks.
Before you start

Before troubleshooting the query logic, ensure that the source workbooks are fully saved and closed, as open workbooks can occasionally lock data and prevent ODBC drivers from reading the most recent changes.

Solution 1Recommended

Verify ODBC Connection Details and Data Formatting

Check that your query is reading the correct source files and that data types and key values match perfectly across joined tables.

A common reason for a LEFT JOIN failing to pull updated data in an ODBC query is mismatched data types or hidden formatting differences in the source workbooks. Even a minor discrepancy can cause the join condition to fail.

1
Check Source Files

Ensure your ODBC connection string points directly to the correct and most recent versions of your source workbooks, not an older copied version.

2
Verify LEFT JOIN Conditions

Inspect the columns used in your LEFT JOIN. Mismatched data types (such as text formats vs. number formats) will cause matching rows to be dropped or show as empty.

3
Inspect Key Values

Look for leading or trailing spaces, hidden characters, or formatting differences in the key values used to join the tables. Clean the data if necessary.

4
Fully Refresh Connection

Navigate to the Data tab on the Excel ribbon, select 'Queries & Connections', right-click your connection, and choose 'Refresh' to ensure the application attempts to pull the latest data.

Verify ODBC Connection Details and Data Formatting
Data Type Consistency: Always ensure that identifier columns used for joins share the exact same formatting. Applying the TRIM() or CAST() functions within your SQL query can help resolve formatting mismatches.
Free Microsoft Office alternative

Try WPS Office for Seamless Spreadsheet Management

Experiencing complex ODBC query errors or performance issues in Microsoft Excel? WPS Office provides a free, lightweight, and highly compatible alternative for managing your data and spreadsheets. Enjoy a familiar interface and seamless migration without the heavy subscription costs.

  1. 1. Download WPS Office: Visit the official WPS website and download the free version of WPS Office.
  2. 2. Install the Suite: Follow the simple installation wizard to set up WPS Office on your computer in minutes.
  3. 3. Open Your Data File: Launch WPS Spreadsheet and open your existing .xlsx workbooks to view and manage your data easily.
Free and lightweight office suite with rapid startup speedsFully compatible with Microsoft Excel (.xlsx) formatsFamiliar user interface for quick onboarding and seamless migrationAdvanced data processing, pivot tables, and filtering tools included
microsoft office alternative - wps office

Frequently Asked Questions

Why does my Excel query not update after changing source data?

This usually happens if the ODBC query is pointing to an outdated version of the file, if there are file locks preventing the read, or if data type mismatches in a LEFT JOIN cause newly added rows to be ignored during the refresh.

How do I force a full refresh of all ODBC connections in Excel?

Go to the 'Data' tab on the top ribbon and click the 'Refresh All' button. Alternatively, you can check the connection properties to ensure 'Enable background refresh' is configured appropriately for your workflow.

Can mismatched data types affect a LEFT JOIN in an ODBC query?

Yes. If the key column in your main table is formatted as text and the corresponding column in your source workbook is formatted as a number, the JOIN condition will fail to match those records, resulting in empty or missing data in your final query output.

Where can I get help with complex SQL queries for Excel ODBC?

For advanced SQL and ODBC syntax issues, developer communities like Stack Overflow (using the SQL tag) are excellent resources. Always provide your exact SQL query and connection string details for the best assistance.