Locating and Re-installing Links for MS Query in Excel 365

Abstract: Resolve broken MS Query links in Excel 365 by verifying ODBC drivers and updating connection strings to restore external data access.

Created: 2026-08-25 by

Re-installing broken MS Query links in Excel 365 requires locating the underlying ODBC connection strings and refreshing them through the Data tab. When external data sources become unavailable, you must verify the driver installation and update the query properties to restore the link between your workbook and the database.

Identifying Broken Connections

When an MS Query connection fails, Excel typically displays error messages indicating that the data source cannot be found or that the connection string is invalid. This often happens after moving workbooks to different machines, updating Office versions, or changing network configurations. The first step is to identify which specific queries are affected. Open your workbook and navigate to the Data tab on the ribbon. Look for the Queries & Connections pane, which lists all active data connections. If a connection is broken, it will usually show a warning icon or display an error status next to the query name. You can also check individual worksheets for cells that return #REF! or #VALUE! errors when attempting to refresh data. These errors indicate that the formula or query referencing the external data source is no longer valid. In some cases, the entire table may fail to populate, leaving you with empty cells or static data from the last successful refresh. Understanding the scope of the breakage helps determine whether you need to reconfigure a single query or multiple connections across the workbook.

Locating the ODBC Driver

MS Query relies heavily on ODBC (Open Database Connectivity) drivers to communicate with databases. If the driver is missing or corrupted, the link will break regardless of the query settings. To verify if the correct driver is installed, open the Windows Control Panel and search for ODBC Data Sources. Depending on your system architecture, choose either the 32-bit or 64-bit version to match your Office installation. Most Excel 365 installations use the 32-bit ODBC manager even on 64-bit systems, so checking both may be necessary. In the ODBC Data Source Administrator, navigate to the Drivers tab to see a list of installed drivers. Look for the specific driver required by your database, such as SQL Server, Oracle, or Access. If the driver is not listed, you must download and install it from the vendor’s website before proceeding. Ensure that the driver version matches the expectations of your MS Query configuration. Mismatched architectures between Excel and the ODBC driver are a common cause of silent failures where the query appears to run but returns no data.

Re-configuring the Connection String

Once you have confirmed the driver is present, the next step is to update the connection string within Excel. Right-click on the affected query in the Queries & Connections pane and select Properties. In the dialog box that opens, go to the Definition tab. Here you will find the connection string that tells Excel how to reach the database. If the path has changed due to server migrations or file moves, you must edit this string to reflect the new location. Click the Edit button next to the connection string field to launch the Microsoft Query interface. This tool allows you to visually rebuild the connection. Select the appropriate data source from the list, which should now appear because the driver is installed. Follow the prompts to authenticate and select the tables or views you wish to import. After verifying the data preview, save the changes. This process effectively re-links the query to the correct database endpoint.

Refreshing and Verifying Data

After updating the connection properties, return to Excel and click the Refresh All button in the Data tab. Monitor the progress bar at the bottom of the screen to ensure the operation completes without errors. If the refresh succeeds, the data should populate correctly in your worksheet. It is advisable to test the query manually by opening Microsoft Query again and running the SQL statement to confirm connectivity. If issues persist, consider checking firewall settings or network permissions that might block the connection. Additionally, ensure that any macros or VBA scripts used to automate data retrieval are updated to use the new connection parameters. For more information on handling sharing violations during these updates, refer to our guide on resolving Excel Data Connection: 'Changes Could Not Be Saved' Sharing Violation Error. Regular maintenance of these links prevents unexpected disruptions in your reporting workflows.

Frequently Asked Questions

Why does my MS Query show a "File Not Found" error?

This error usually indicates that the file path specified in the ODBC connection string is incorrect or inaccessible. Verify that the server name or file location matches the current network environment and that you have read permissions.

Can I fix broken links without reinstalling Office?

Yes, you only need to update the connection string and ensure the ODBC driver is installed. Reinstalling Office is unnecessary unless the core application files are corrupted.

What is the difference between 32-bit and 64-bit ODBC drivers?

The bitness of the driver must match the bitness of your Excel installation. Using a mismatched driver will prevent Excel from establishing a connection, even if the driver itself is functional.

How do I export a working connection string for backup?

You can view the connection string in the Query Properties dialog under the Definition tab. Copy this text and save it in a secure document to restore connections quickly if they break again.

Does refreshing data clear the previous results?

No, refreshing replaces the existing data with the latest values from the source. Your formulas and formatting remain intact, but the underlying cell contents are updated to reflect the current state of the database.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More