Skip to content
Auscultby NBIT
EN
Free diagnostic

In depth · Maintenance

How to take over an undocumented Access database, step by step

The application's author has retired, changed jobs or changed supplier. The application still runs, the team depends on it, and nobody really knows how it works. Here is how to take it over without breaking anything.

A laptop showing code, next to books

It is one of the most common situations around Access: an application built and maintained for years by a single person, the one who knew every form and every exception. While they were there, all was well. Once they have gone, the smallest change request becomes a leap into the unknown, and the first failure worries everyone.

This guide describes the method, step by step. To get the first step done in a single run (the map of the application and the state of every form), see the inherited Access database assessment tool.

The good news is that an Access application contains most of its own documentation: its objects, their links and its code are all inside the file. You just need to read them in the right order.

First of all: work on a copy

There is no exception to this rule: never explore the application in production. Opening a form in Design view, running an action query or clicking a button to see what it does can change or delete real data.

The diagnostic can do the first step for you: see taking over an inherited Access database for what it reports and what it leaves to check.

  1. Make a full copy: the application file and, if it is split, the data file.
  2. Store the copy in a separate folder on a workstation, away from the production share.
  3. Point the copy of the application at the copy of the data (Linked Table Manager), so that nothing can reach the real tables.
  4. Note the Access version and edition (32-bit or 64-bit) of the PC where the application normally runs.

Understand what happens at startup

Many applications hide how they work the moment they open: collapsed ribbon, hidden Navigation Pane, a menu form that takes over the screen. The first job is to understand that sequence.

  1. Opening: Access reads the database options and loads the VBA references.
  2. Startup form: the form set in the options opens, with its events (Form_Open, Form_Load).
  3. AutoExec macro: runs if a macro has exactly that name.
  4. Called code: the functions started by RunCode.
  5. Holding Shift while opening skips steps 2 and 3, unless the AllowBypassKey property forbids it.
  • The database options (File > Options > Current Database): application title, form displayed at startup, whether the Navigation Pane and menus are shown.
  • The AutoExec macro: a macro with exactly this name runs every time the database opens. It often calls a VBA function (RunCode action) that checks the user, relinks tables or opens the menu.
  • The startup form's events: code placed in the form's "On Open" or "On Load" event runs before the user even sees anything.
  • The Shift key: holding it down while opening skips the startup form and the AutoExec macro, letting you open the application "bare". Developers sometimes disable this through the AllowBypassKey property; it then has to be restored from another database, in code.
Someone working on a laptop

Map the objects

Once the application is open without its protections, draw the map. Access helps a little: the Navigation Pane can group objects by type, the Object Dependencies tool (Database Tools tab) shows what an object uses and what uses it, and the Database Documenter produces a detailed report, very long but exhaustive.

These tools have one limit: they do not read VBA code. A button that opens a form with DoCmd.OpenForm, a query whose SQL is built in a module, a report printed from a procedure: none of this shows up in the dependencies. For an accurate map, you have to cross-reference the objects and the code.

QuestionWhere to look
Which forms do users actually see?The startup menu, then every button it offers
Which queries change data?Action queries (append, update, delete, make-table) and SQL statements executed in code
Where does the application get its data?The Linked Table Manager and connection strings in the code
What happens outside Access?Code that drives Excel, Word or Outlook, writes files, reads folders
What is no longer used?Objects nothing calls, neither another object nor the code

Read the VBA code without getting lost

The code is where the business rules hide: a discount calculation, invoice numbering, a duplicate check. A few habits make reading it safer:

  • Compile first (Debug > Compile in the VBA editor). A compile error immediately reveals a missing reference, an unknown variable or code that will not run in 64-bit.
  • Check the references (Tools > References). A line marked "MISSING" points to a library absent from the PC; it is enough to make unrelated-looking functions fail.
  • Look for modules without Option Explicit: without this line, a typo in a variable name silently creates a new, empty variable. It is a classic source of wrong results.
  • Spot error handlers that swallow everything: an "On Error Resume Next" at the top of a procedure hides failures instead of reporting them.
  • Follow procedures from the buttons rather than reading modules top to bottom: you then understand the code in the order users trigger it.

Check what still works

An inherited application almost always contains broken parts nobody has reported, because nobody uses them any more or because users have learned to work around them. Before promising any change, find out what works: open every form, run every select query, preview every report, and note each error with its exact message.

This record pays off twice: it protects you from being blamed for breaking what was already broken, and it gives you a concrete to-do list, ranked by importance to users.

Document as you go

There is no point aiming for a huge, exhaustive document that nobody will keep up to date. Short documentation, updated at every intervention, works better:

  • one page describing the architecture: files, locations, linked tables, external sources, Access versions;
  • the list of important processes (month-end close, imports, invoicing) with the form or button that starts them;
  • the business rules found in the code, in plain English, with the name of the procedure that implements them;
  • a change log: date, object changed, reason.

It is also the moment to ask whether the application should carry on as it is, be consolidated, or be prepared for migration. Our guides on technical debt and on migrating an Access application help you decide.

The errors you will meet most often are explained one by one in the Access error code reference.

All articles

What about your application?

The diagnostic runs on your computer, without sending the contents of your tables. The summary is free.