How to Fix Microsoft Access Runtime Error 3024 When Connecting to SQL Server
Question details
The user needs to resolve runtime error 3024 in Microsoft Access occurring during an attempted connection to a SQL Server database.

- Product
- Microsoft Access, SQL Server
- Device & OS
- not provided
- Scenario
- Connecting a Microsoft Access database or frontend application to a SQL Server backend.
- Observed behavior
- Microsoft Access throws runtime error 3024 (typically 'File not found'), even though the exact same database connection works successfully in Visual Studio.
Ensure you have documented the exact versions of Microsoft Access and SQL Server you are using, and verify that you have the necessary administrative privileges to check ODBC data sources and database connection strings.
Verify Connection Strings and Relink Tables
Error 3024 generally means Access cannot find a required file or database. Updating the connection string or relinking your SQL Server tables usually resolves the missing path issue.
Microsoft Access heavily relies on accurate file paths and ODBC connection strings for linked tables. If a database was moved or the connection string contains an error, Access will fail to locate the SQL Server backend, whereas Visual Studio might be using a completely different connection configuration.
Launch Microsoft Access, navigate to the 'External Data' tab on the ribbon, and click on 'Linked Table Manager'.
In the Linked Table Manager window, select the checkboxes next to the tables that are linked to your SQL Server database.
Check the box that says 'Always prompt for new location' at the bottom, then click 'OK'. When prompted, select or create the correct Machine/System Data Source (DSN) pointing to your SQL Server.
During the ODBC setup, ensure the default database selected exactly matches the name of your SQL Server database.

Check Driver Compatibility and Architecture Bitness
A mismatch between the 32-bit or 64-bit architecture of Microsoft Access and the installed ODBC driver can cause the connection to fail with a file not found error.
Discover WPS Office as a Lightweight Alternative
While Microsoft Access is used for complex SQL Server database management, WPS Office provides a free, lightweight, and highly compatible alternative for your daily document, spreadsheet, and presentation needs. Enjoy a familiar interface and seamless migration without expensive subscriptions.

Frequently Asked Questions
What does Runtime Error 3024 mean in Microsoft Access?
Runtime Error 3024 is a 'File not found' error. In the context of connecting to a SQL Server, it usually indicates that Access cannot find the linked database file, the required ODBC Data Source Name (DSN) does not exist, or the connection string is pointing to an invalid path.
Why does my SQL Server connection work in Visual Studio but fail in Access?
Visual Studio often uses native ADO.NET providers or entirely different connection strings configured in code. Microsoft Access typically relies on ODBC drivers. If the necessary ODBC driver is missing, misconfigured, or has a bitness mismatch (e.g., 32-bit Access trying to use a 64-bit driver), Access will fail even though Visual Studio succeeds.
How do I fix a missing ODBC Data Source for Microsoft Access?
You need to open the Windows ODBC Data Source Administrator tool that matches the bitness of your Microsoft Access installation (32-bit or 64-bit). From there, you can add a new User or System DSN using the correct SQL Server driver, which Access can then use to establish the connection.




