Most organizations still have at least one Access database quietly powering something important. Learn how to connect Power Query to Access reliably, understand the difference between pulling tables vs. saved queries, manage credentials across machines, and build refresh workflows that don't break when paths change.

You inherited a sales reporting workbook that pulls from an Access database someone built in 2009. The .accdb file lives on a shared network drive, gets updated nightly by a legacy VBA process, and feeds three different Excel dashboards that your manager refreshes every Monday morning. You need to make all of this reliable, documented, and — ideally — not break every time someone moves the file or changes the network path.
This is the reality for a surprising number of data professionals. Microsoft Access never really went away. It lives in small business back-offices, government departments, and enterprise legacy systems where full SQL Server migrations were never prioritized. Knowing how to connect Power Query to Access cleanly — pulling from both tables and saved queries, handling credentials correctly, and setting up refresh that actually works — is a genuinely useful skill even if you spend most of your time in cloud-native tools.
By the end of this lesson, you'll be able to connect Power Query to both .mdb and .accdb Access files, understand the difference between pulling raw tables versus saved Access queries and when each is appropriate, manage credential settings so refreshes don't silently fail, write M code that handles the connection robustly, and troubleshoot the most common failure modes. This isn't a beginner walkthrough — if you need a foundation first, start with Getting Started with Power Query: Master Connect, Transform, Load for Real-World Data before continuing.
What you'll learn:
Access.Database() function works and how to modify it directlylet...in expression.accdb or .mdb format) — the exercises use a sample file described in the hands-on sectionBefore you click a single button, it's worth understanding what Power Query actually sees when it opens an Access file. Access databases are structured differently from flat files or SQL Server — they contain multiple object types, and Power Query surfaces them in a navigator pane that lumps them together in a way that can be confusing at first.
When Power Query connects to an Access database, the Access.Database() function returns a table of records where each row represents one database object. These objects fall into two categories you'll care about:
There's also a third type, Linked Tables, which are worth knowing about: Access lets you link to external data sources (other Access files, SQL Server, SharePoint lists) and surface them as if they were local tables. When you pull a linked table through Power Query, you're actually reaching through the Access file to the original source — which creates its own credential and connectivity considerations we'll address later.
Note
Power Query does not expose Access forms, reports, macros, or VBA modules — only tables and queries. If someone asks why their "reports" aren't showing up in the navigator, that's why.
The distinction between tables and saved queries becomes strategically important when you think about where transformation logic should live. If a skilled Access developer has already written a well-optimized query that filters, joins, and aggregates exactly what you need, pulling that query directly reduces duplication and respects the original business logic. On the other hand, if you pull raw tables and replicate that logic in Power Query, you now have two places to maintain it. We'll return to this tradeoff throughout the lesson.
Open Excel and navigate to Data → Get Data → From Database → From Microsoft Access Database. A file picker dialog opens. Browse to your .accdb or .mdb file, select it, and click Import.
If this is a new connection (Power Query hasn't connected to this file before on this machine), you'll immediately see a Navigator pane. If the database requires a password, you'll first hit a credential prompt — we'll handle that in its own section below.
In Power BI Desktop, click Get Data from the Home ribbon (or press Alt+H+GD). In the Get Data dialog, either search for "Access" or find it under Database. The entry reads Access database. Select it and click Connect.
The file picker looks slightly different from Excel's but works identically. Navigate to your file and click Open.
Warning
Power BI Desktop is a 64-bit application, and Access database connectivity requires the Microsoft Access Database Engine. If you get an error that says something like "The 'Microsoft.ACE.OLEDB.16.0' provider is not registered," you need to install the 64-bit version of the Microsoft Access Database Engine 2016 Redistributable. This is one of the most common first-time setup issues and has nothing to do with your query logic.
After connecting successfully, the Navigator pane shows all accessible objects in the database. You'll see a list with two visual indicators: a small spreadsheet-grid icon for tables, and a slightly different icon for queries. Unfortunately, Access doesn't distinguish these icons as clearly as you might hope — the clearest signal is usually the naming convention the original developer used.
Click on any object to see a preview in the right pane. This preview is live — Power Query is actually querying the Access file right now — which means large tables may take a few seconds to populate the preview.
You have two choices from Navigator:
In production work, almost always choose Transform Data. Even if you think you don't need transformations right now, opening the editor gives you visibility into what was imported and lets you add steps later without rebuilding the connection.
You can check multiple tables and queries in the Navigator by ticking the checkboxes to the left of each name. When you check more than one object and click Transform Data, Power Query opens with one query per checked object. This is useful when you need to pull several related tables and then combine them using append or merge operations.
Once you're in the Power Query Editor, open the Advanced Editor (View → Advanced Editor) for your Access query. You'll see something like this:
let
Source = Access.Database(
File.Contents("C:\Data\SalesOperations.accdb"),
[CreateNavigationProperties = true]
),
Navigation = Source{[Schema = "", Item = "SalesOrders"]}[Data],
#"Changed Type" = Table.TransformColumnTypes(
Navigation,
{
{"OrderID", Int64.Type},
{"OrderDate", type date},
{"CustomerID", Int64.Type},
{"TotalAmount", type number},
{"Status", type text}
}
)
in
#"Changed Type"
Let's unpack this. Access.Database() takes two arguments: a binary value representing the file (produced by File.Contents()) and an optional record of options. The CreateNavigationProperties = true option tells Power Query to build the navigation structure that lets you drill into individual tables and queries using the {} syntax on the next line.
The navigation expression Source{[Schema = "", Item = "SalesOrders"]}[Data] is the M equivalent of "find the object named SalesOrders in the Source table." For Access, the Schema is always an empty string — Access doesn't have schemas the way SQL Server does.
Key insight
If you want to switch which table or query you're pulling from without rebuilding the entire query, you only need to change the Item value in the navigation step. This makes it trivial to swap between a raw table and a saved query that provides the same data shape, or to build a parameterized connection where the target object name is passed in dynamically.
The M code for pulling a saved Access query looks identical to pulling a table — only the Item name changes:
let
Source = Access.Database(
File.Contents("C:\Data\SalesOperations.accdb"),
[CreateNavigationProperties = true]
),
SalesQuery = Source{[Schema = "", Item = "qry_SalesOrdersSummary"]}[Data],
#"Changed Type" = Table.TransformColumnTypes(
SalesQuery,
{
{"Month", type text},
{"Region", type text},
{"TotalRevenue", type number},
{"OrderCount", Int64.Type}
}
)
in
#"Changed Type"
Here, qry_SalesOrdersSummary is the name of a saved SELECT query in the Access database that already joins the Orders, OrderDetails, and Products tables and groups by month and region. By pulling this query instead of three raw tables, you're leveraging work already done in Access and keeping your Power Query transformation stack leaner.
The practical tradeoff: Access queries are only as reliable as the Access database itself. If the Access developer modifies qry_SalesOrdersSummary — changes column names, adds parameters, removes joins — your Power Query will break downstream. For handling those kinds of schema changes gracefully, you'll want defensive column selection rather than assuming a fixed structure.
Access supports parameter queries — queries that prompt for input when run interactively. If you try to pull a parameterized Access query through Power Query, you'll typically get an error like "Too few parameters. Expected 1." This is because Power Query doesn't know how to satisfy the parameter prompt.
Your options are:
Option 1 is usually the cleanest solution when you have access to the database designer.
This is where most Access-related refresh failures originate, and it's worth treating seriously.
If the Access database has a database password set (not user-level security, but the simpler file-level password under File → Info → Encrypt with Password in Access), Power Query will prompt for credentials when you first connect.
In the credential dialog, select Database from the left-hand menu (not Windows or Anonymous) and enter the database password in the Password field. Leave the username field empty — Access file-level passwords don't use usernames.
Warning
Access database passwords are stored in Power Query's credential cache, which is per-machine and per-user. If you share the .pbix or .xlsx file with a colleague, they will need to re-enter the credentials on their own machine. The credentials do not travel with the file.
To view or clear stored credentials in Excel: Data → Get Data → Data Source Settings → Global Permissions. Find your Access file path, right-click, and you'll see options to edit or delete the stored credentials.
In Power BI Desktop: File → Options and Settings → Data Source Settings, then find your Access file and click Edit Permissions.
For .accdb files without a database password, Power Query connects using the Windows identity of the current user. The credential type is Windows, and in most cases Power Query handles this transparently. The gotcha arrives when the file is on a network path.
If your Access file lives at \\fileserver01\shared\data\SalesOperations.accdb, Power Query will store the credentials against that UNC path. If the file later moves to \\fileserver02\shared\data\SalesOperations.accdb, your credentials are stored against the old path and won't match — the refresh fails.
This is doubly annoying because the error message is often generic: "DataSource.Error: Access to the resource is forbidden." Check the Data Source Settings first before assuming it's a permissions issue.
Tip
When you know a file path might change in the future, consider building the path from a query parameter rather than hardcoding it. You can then update the path in one place and have it flow through to all queries that reference that Access database.
If you work with multiple Access databases, be aware that Power Query manages credentials per unique file path. Two files at different paths are treated as completely separate data sources with separate credential entries. This is usually fine, but becomes a problem if you've ever moved a file and re-added the connection — you can end up with stale credential entries that cause confusion.
Do a periodic cleanup via Data Source Settings to remove credentials for paths that no longer exist. It's housekeeping, but it prevents mysterious failures during refresh.
In Excel, you can refresh an Access-connected query manually via Data → Refresh All, or right-click the loaded table and choose Refresh. For automatic refresh, you have two options:
Refresh on file open: In the Query Properties dialog (right-click the query in the Queries & Connections pane → Properties → Usage tab), check "Refresh data when opening the file." This triggers a refresh every time the workbook is opened.
Scheduled refresh: Excel doesn't have native scheduled refresh for Power Query. For true automation, you need either Power BI Service, a Power Automate flow, or a VBA macro that opens the workbook, refreshes, and saves.
Note
The "Refresh every X minutes" option in Query Properties only works while the file is open and you're actively in Excel. It's useful for dashboards running on a dedicated display but not for unattended automation.
If you've published a Power BI report that connects to an Access file, scheduled refresh in Power BI Service requires a data gateway. The Access file must be accessible from the machine where the gateway is installed, and the gateway machine needs the Access Database Engine installed.
Configure this under the dataset settings in Power BI Service: Datasets → Your Dataset → Settings → Gateway Connection. Add a new data source of type Access, provide the file path as it's visible from the gateway machine (not necessarily the same as your local path), and enter credentials.
The critical thing to understand: the file path you registered in Power BI Desktop must match what the gateway expects. If you developed locally using C:\Data\SalesOperations.accdb and the gateway machine sees the same file at \\fileserver01\shared\data\SalesOperations.accdb, you'll get a path mismatch error. You have two remedies:
Option 2 is the professional choice. It's slightly annoying during development but prevents hours of gateway troubleshooting later. For a deeper look at managing refresh failures and diagnostics in Power BI Service, this lesson on scheduling and managing refresh failures covers recovery workflows in detail.
Access databases are rarely enormous — they tend to top out in the hundreds of megabytes before performance degrades enough that organizations migrate to SQL Server. But if you're pulling transaction history from an Access database that's been accumulating records for a decade, you might be looking at hundreds of thousands of rows.
Standard Power Query refresh re-pulls the entire dataset on every refresh cycle. For large Access tables, consider whether a date-filtered query (filtering in Power Query to only load records from the last N days, then appending to a historical snapshot) would be more efficient. The full approach to this is covered in automating incremental data refreshes, but the core idea is filtering early so you're not transferring 500,000 rows when you only need the 2,000 added since yesterday.
Access linked tables deserve their own attention because they behave very differently from native tables when you pull them through Power Query.
When Power Query retrieves a linked table, Access acts as a passthrough layer — it fetches the data from whatever external source it's linked to (another Access file, a SQL Server table, a SharePoint list) and returns it to Power Query. This means:
The external source must be accessible from whatever machine is running the Power Query refresh. If the linked table points to a SQL Server database that your colleague's laptop can reach but the gateway machine cannot, refreshes from Power BI Service will fail.
Credentials get complicated. Power Query sees an Access file and uses Access credentials. But behind the scenes, Access is making its own connection to SQL Server using whatever credentials the linked table was configured with. You can end up in a situation where Power Query connects fine but Access silently fails to refresh the linked data, returning stale data or errors that are hard to trace.
Query folding does not apply. When you pull a linked table, Power Query cannot push filter or join operations back to the underlying SQL Server source through the Access layer. All filtering happens in-memory in Power Query. This is a significant performance consideration — if you're pulling a linked table that maps to a 10-million-row SQL Server table, you're pulling all 10 million rows through Access and then filtering in Power Query. If that's your situation, consider connecting directly to SQL Server instead.
Key insight
Linked tables in Access are often a sign that the database is a transitional layer between legacy Access usage and a more modern backend. When you encounter them, it's worth asking whether Power Query could bypass Access entirely and connect directly to the source. The answer is often yes, and the performance improvement can be dramatic.
A single Access connection can serve as the source for many Power Query queries in the same workbook or report. Rather than hardcoding the file path in every query individually, it's better practice to create a single base connection query and reference it from each object-specific query.
Here's how to structure this. First, create a query called AccessDB_Base that just establishes the connection and surfaces the navigation table:
let
FilePath = "\\fileserver01\shared\data\SalesOperations.accdb",
Source = Access.Database(
File.Contents(FilePath),
[CreateNavigationProperties = true]
)
in
Source
Then create individual queries that reference this base:
// Query: SalesOrders
let
Source = AccessDB_Base,
SalesOrders = Source{[Schema = "", Item = "SalesOrders"]}[Data],
#"Removed Columns" = Table.RemoveColumns(SalesOrders, {"InternalNotes", "LegacyID"}),
#"Changed Type" = Table.TransformColumnTypes(
#"Removed Columns",
{
{"OrderID", Int64.Type},
{"OrderDate", type date},
{"CustomerID", Int64.Type},
{"TotalAmount", type number}
}
)
in
#"Changed Type"
// Query: Customers
let
Source = AccessDB_Base,
Customers = Source{[Schema = "", Item = "Customers"]}[Data],
#"Changed Type" = Table.TransformColumnTypes(
Customers,
{
{"CustomerID", Int64.Type},
{"CompanyName", type text},
{"Region", type text},
{"AccountManager", type text}
}
)
in
#"Changed Type"
This architecture means if the file path ever changes, you update it in exactly one place: AccessDB_Base. Every downstream query picks up the change automatically. This is a core principle of maintainable ETL design in Power Query — a single source of truth for connection details.
Tip
Mark your AccessDB_Base query with the "Enable load" option turned off (right-click it in the Queries pane → uncheck "Enable Load"). This prevents it from creating a table in your Excel sheet or Power BI model — it's purely a reusable connection component that feeds other queries.
In this exercise, you'll build a complete, production-ready connection to a sample Access database, pull both a raw table and a saved query, structure them using the base connection pattern, and configure the credential and refresh settings correctly.
For this exercise, you need an Access database. If you don't have one handy, create a simple one in Access with:
Orders with columns: OrderID (AutoNumber), OrderDate (Date/Time), CustomerName (Short Text), ProductCategory (Short Text), Amount (Currency), IsProcessed (Yes/No)qry_ProcessedOrdersSummary that SELECTs ProductCategory, Count(*) AS OrderCount, Sum(Amount) AS TotalRevenue FROM Orders WHERE IsProcessed = True GROUP BY ProductCategorySave it as SalesOps.accdb on your local drive (e.g., C:\ExerciseData\SalesOps.accdb).
let
Source = Access.Database(
File.Contents("C:\ExerciseData\SalesOps.accdb"),
[CreateNavigationProperties = true]
)
in
Source
AccessDB_Baselet
Source = AccessDB_Base,
RawOrders = Source{[Schema = "", Item = "Orders"]}[Data],
#"Filtered Active" = Table.SelectRows(
RawOrders,
each [IsProcessed] = true
),
#"Changed Type" = Table.TransformColumnTypes(
#"Filtered Active",
{
{"OrderID", Int64.Type},
{"OrderDate", type date},
{"CustomerName", type text},
{"ProductCategory", type text},
{"Amount", type number},
{"IsProcessed", type logical}
}
),
#"Removed Columns" = Table.RemoveColumns(
#"Changed Type",
{"IsProcessed"}
)
in
#"Removed Columns"
Orders_Processedlet
Source = AccessDB_Base,
Summary = Source{[Schema = "", Item = "qry_ProcessedOrdersSummary"]}[Data],
#"Changed Type" = Table.TransformColumnTypes(
Summary,
{
{"ProductCategory", type text},
{"OrderCount", Int64.Type},
{"TotalRevenue", type number}
}
),
#"Sorted Rows" = Table.Sort(
#"Changed Type",
{{"TotalRevenue", Order.Descending}}
)
in
#"Sorted Rows"
Orders_SummarySalesOps.accdb path in the listOrders_Processed query in the Queries & Connections pane, choose Properties, and enable "Refresh data when opening the file"You now have a production-ready, maintainable Access connection that uses a shared base query, pulls from both a raw table and a saved Access query, applies type definitions, and auto-refreshes on open.
This is almost always a bitness mismatch. Power BI Desktop is 64-bit. Office installations can be 32-bit. The Access Database Engine must match the application doing the connecting. Install the 64-bit Access Database Engine Redistributable. If you have a 32-bit Office installation, you may need to install the 64-bit Access Database Engine alongside it — Microsoft supports this in certain configurations.
Go to Data Source Settings and delete the stored credential for this file, then reconnect and re-enter credentials. Credential cache corruption is surprisingly common, and a clean re-entry fixes it more often than any other approach.
This is the linked table scenario. The Access database appears to refresh, but the data isn't updated. Check whether the tables you're pulling are linked tables in Access. If they are, trace through to the actual source and verify that source is accessible and refreshing on its own schedule.
If someone modifies a saved Access query and renames columns, your Power Query will error on the type conversion step or any downstream step that references the old column name by name. The defensive pattern is to use Table.SelectColumns early in your query to explicitly select only the columns you need and rename them to stable internal names right away. This creates a stable contract between your Power Query logic and the Access source. See the guidance on handling dynamic schema changes for a systematic approach.
You connected, got no errors, but the Navigator is empty or shows only a handful of objects. This usually means you connected to the wrong file (easy to do with similar filenames), or the Access database uses user-level security (an older Access 2003 .mdb feature) that restricts what objects are visible under your credentials. Try opening the .mdb file directly in Access to see what you have access to.
Access isn't designed for high-volume analytical queries. If refreshes are taking more than a minute or two on reasonably-sized tables, the first thing to check is whether you're pulling more data than you need — filtering early in the query reduces how much data Access has to scan. Second, check whether you have multiple queries all referencing AccessDB_Base and potentially opening multiple simultaneous connections to the same file. If the Access file is on a network share, concurrent connection overhead adds up quickly.
Warning
Unlike SQL Server connections, the Access connector does not support query folding. Every filter, sort, and transformation you apply in Power Query happens after all the data is transferred from Access to Power Query's in-memory engine. There is no way to push operations back to Access. This makes early filtering critically important — keep your row count as small as possible as early as possible in the query. For background on why query folding matters for performance, see Power Query Performance: Master Folding, Buffering & Optimization Techniques.
The file path stored in the connection no longer points to a real file. Either the file was moved, renamed, or the network share went offline. If you built your connection using the base query pattern described above, fixing this means updating the path in AccessDB_Base only. If you hardcoded paths in individual queries, you need to update each one.
This is precisely the scenario where using a query parameter for the file path pays off. Build it in once, and path changes become a two-second fix in the parameter editor.
One of the most common scenarios involving Access in Power Query is a phased migration — the organization is moving to SQL Server or another modern platform, but the Access database will remain the system of record for some period while the migration proceeds.
The smart approach here is to treat your Power Query layer as a stable abstraction. Build your AccessDB_Base and object-specific queries exactly as described in this lesson. When a table gets migrated to SQL Server, you update that one object query to use a SQL Server source instead of AccessDB_Base, while all the downstream logic (joins, type conversions, calculated columns) remains unchanged.
This is multi-stage staging architecture in practice: your raw layer connects to the source, your cleansed layer applies business rules and type safety, and your conformed layer presents data to consumers. Each layer is independently swappable, which makes migrations dramatically less risky.
The alternative — letting Access connections reach all the way into reports and dashboards — means migration involves touching every consumer. That's how migrations take years instead of months.
You can now connect Power Query to Access databases with a clear understanding of what's happening at the M code level, not just which buttons to click. You know the difference between pulling raw tables and saved queries, why linked tables introduce hidden complexity, how credential management works across machines and environments, and how to structure your queries so they're resilient to the file moves and schema changes that are inevitable in real environments.
The base connection pattern — a single non-loading query that holds the connection, with specific queries referencing it — is worth applying consistently. It costs you nothing and saves significant pain when paths or credentials need updating.
Where to go from here depends on what you're building:
Access databases are a solved problem in Power Query once you know the patterns. Build them right once, and they'll serve you reliably for as long as the database survives.
Power Query Essentials