Skip to content

Dataset

Microsoft Access database file datasets for AI training

A Microsoft Access dataset is a set of .accdb and .mdb files from one business, or their contents extracted to open formats: the tables, saved queries, forms, reports, macros and VBA modules of the small departmental applications its own staff built to track customers, jobs, inventory or cases. SourceX sources it to a buyer's spec from established businesses that run Microsoft Access, including split front-end and back-end files where both can be supplied. Each dataset is de-identified and licensed for an agreed permitted use.

Dataset manifest

Sourced to your spec
What it is
Departmental Access applications as files or extracts: table rows, query SQL, form and report definitions, macros and VBA
Typical systems
Microsoft Access desktop databases in .accdb and .mdb format, including split front ends with their back-end files
Typical history
Specified by the buyer; many tables carry no row dates, and long-running databases exist as dated copies
Modality
Structured table rows; code in query SQL, macros and VBA modules; form and report layouts as text definitions
Delivery formats
Agreed per order; original files, or tables as CSV or Parquet with a schema file, queries as .sql and other objects as text
Preparation
Personal data in tables replaced with stable keys; passwords and connection strings removed; lock files left out
Licensing
Rights reviewed with the business that built and owns the database; permitted use set in the license
Availability
Sourced to your spec by industry, application type and file count; a matching set of files is not guaranteed
Structured recordsIllustrative

What a delivery contains

Fields vary by source system and are fixed per order. A typical delivery includes:

FieldTypeWhat it holds
database_keystringStable pseudonym for one .accdb or .mdb file, with its role as front end, back end or unsplit file and its modified date.
objectobjectName and type of the Table, Query, Form, Report, Macro or Module as the Navigation Pane lists it.
table_columnsarrayA Table's fields from Design View: name, data type such as Short Text, AutoNumber or Yes/No, Validation Rule, Caption and Description.
rowsarrayThe Table's records, with AutoNumber keys kept so gaps left by deleted records stay visible.
relationshipsarrayEntries from the Relationships window: tables, fields, and whether referential integrity and cascades are enforced.
linked_sourceobjectFor a Linked table, the source type and table name from its Connect string, with paths and credentials removed.
query_sqlstringA saved Query's SQL View text, with its type: select, crosstab, append, update, delete, make-table, union or pass-through.
form_definitionobjectA Form's Record Source, its controls with their Control Source, and the event properties that name a macro or event procedure.
report_definitionobjectA Report's Record Source, grouping levels and the calculated controls in each section.
macro_actionsarrayActions and arguments of a Macro, an embedded macro on a control, or a data macro on a table event.
vba_sourcestringSource text of a standard Module or of the class module behind a Form or Report, such as Form_frmJobs.
column_historyarrayEarlier values of a Long Text field whose Append Only property is on, with the date Access stamped on each.
Sample recordIllustrative

Field names from the table above; values are masked placeholders.

Example record

{
  "database_key": "db_7c21e4",
  "file": {
    "format": "accdb",
    "role": "front_end",
    "modified": "2023-11-02",
    "paired_back_end": "db_7c21e5"
  },
  "object": {
    "name": "frmJobs",
    "type": "Form"
  },
  "form_definition": {
    "record_source": "qryOpenJobs",
    "before_update": "[Event Procedure]",
    "controls": [
      {
        "name": "cboCustomer",
        "type": "ComboBox",
        "control_source": "CustomerID",
        "row_source": "SELECT CustomerID, CustomerName FROM tblCustomers ORDER BY CustomerName;"
      },
      {
        "name": "txtDueDate",
        "type": "TextBox",
        "control_source": "DueDate"
      }
    ]
  },
  "query_sql": "SELECT j.JobID, j.CustomerID, j.DueDate, j.Status, Nz(j.QuoteTotal, 0) AS QuoteTotal\nFROM tblJobs AS j\nWHERE j.Status <> 'Closed' AND j.DueDate >= [Forms]![frmFilter]![txtFrom]\nORDER BY j.DueDate;",
  "linked_source": {
    "table": "tblJobs",
    "source_type": "access_back_end",
    "source_table": "tblJobs",
    "connect": "[PATH_REMOVED]"
  },
  "vba_source": "Private Sub Form_BeforeUpdate(Cancel As Integer)\n    If IsNull(Me.cboCustomer) Then\n        MsgBox \"Pick a customer before saving.\"\n        Cancel = True\n        Exit Sub\n    End If\n    Me.ModifiedOn = Now()\n    Me.ModifiedBy = \"[USER_014]\"\nEnd Sub"
}

Synthetic record for illustration. Field names, structure and format are agreed per order.

What AI teams use it for

Train agents to migrate desktop databases

Tables, query SQL, form definitions and VBA from one file are the full input for rebuilding an Access application on a server database.

Teach the Access SQL dialect

Saved queries use IIf, Nz, crosstab TRANSFORM statements and references to controls on open forms, habits that server SQL corpora do not contain.

Recover business rules from event code

Validation Rules, BeforeUpdate procedures and button handlers state the checks staff built in.

Learn from hand-entered tables

Rows typed through forms carry free text in Long Text fields, lookup keys displayed as names, Yes/No flags and the same customer entered twice, with no check beyond a Validation Rule.

Build tasks with a checkable answer

A Report's Record Source and grouping define the figure the business read each month, so a rebuilt query can be scored against the report's output.

Use-case guides: Coding agents, Enterprise and computer-use agents, Private evaluation sets

What makes this data valuable

Front end and back end together

A split application delivered as both files, so every linked table resolves to rows.

Source objects present

An .accdb or .mdb with readable forms and modules, not only a compiled .accde or .mde.

Declared relationships

Joins recorded in the Relationships window with integrity enforced, not implied by field names.

Design metadata filled in

Field Descriptions, Captions and Validation Rules that say what a column means and what it may hold.

Dated copies in sequence

Yearly or pre-change copies collected and ordered, which supply a history the file itself does not keep.

In use until recently

A recent modified date on the back end and recent rows in its dated tables separate a working application from an abandoned experiment.

Document stack

Microsoft Access dataset

This page covers microsoft Access database files.Illustrative

One file holds the whole application, or none of its data

An Access file is more than a database. The same .accdb holds the tables, the saved queries over them, the forms staff typed into, the reports they printed and the VBA behind each button. A form names its Record Source, usually a query. Each control names its Control Source, a field of that query. A button's On Click property points to an event procedure in the form's own class module. One artifact lets a reader follow a value from the table, through the query, to the screen where it was typed and the code that checked it.

Many files break that picture. An Access application shared by several people is often split. The back end is a file of tables on a network share. The front end holds the queries, forms, reports and code, plus linked tables that are only pointers, so a front end alone contains no rows at all. Its linked tables may point to another Access file, to SQL Server through ODBC or to a SharePoint list, and the Connect string can hold a server name, a file path and sometimes a saved password. Each user often runs a private copy of the front end, so several versions can exist.

Access also keeps almost no history. A deleted record is gone once Compact and Repair reclaims the space, and a gap in the AutoNumber sequence is the only trace. Nothing records who changed what unless the builder added it, typically a ModifiedOn field set in a form's BeforeUpdate procedure. That stamp is written only when the edit goes through that form. An update query leaves it untouched. The built-in exception is a Long Text field with Append Only switched on, which keeps earlier values that a plain table export drops.

What comes out of an Access file, and what needs Access itself

An Access file, .accdb or .mdb, cannot grow past 2 GB. A database that nears the cap is usually handled by hand. Someone moves large tables into further back-end files and links them, or copies the file at year end, clears the old rows and carries on, so a decade of jobs can be a series of files named by year, each with a different table design. Embedded OLE objects and attachments are a common cause of the growth. Ask for every copy, and ask which tables were emptied at each rollover and which carried forward, since customers often persist while transactions do not.

Open-source readers that run outside Windows, such as mdbtools and Jackcess, open a file's tables and in some cases the SQL of its saved queries. They do not return forms, reports, macros or VBA. Those come out through Access itself, object by object, as the text that its undocumented SaveAsText method writes or as a Database Documenter report. A compiled .accde or .mde has had its VBA source removed, so ask for the original .accdb or .mdb. A table extract loses things too. An Attachment or multi-valued field lives in a hidden child table and tends to flatten to file names or a delimited string. A lookup field shows a name while it stores a key. Yes/No values are stored as -1 and 0, and dates carry no time zone.

Test a sample in three steps. First, list the linked tables in each file and check that each resolves to a delivered table. Second, trace one form. Its Record Source should name a query in the delivery, the query should run against the delivered tables once any reference to an open form is given a value, and the event procedures its properties name should exist in its module. Third, search the VBA and every Connect string for passwords, user names and server paths, which are common in both.

What to check before licensing

  • Have the database owner and counsel check Microsoft's license terms for Access as they apply to licensing files the business created, including any template objects left inside them.
  • Ask for every file of a split application, front end and back end, and check on a sample that each linked table resolves to delivered rows.
  • Confirm the files are source .accdb or .mdb and not compiled .accde or .mde, and ask how any database password or workgroup file was handled.
  • Ask how many dated copies exist of each database and which tables were cleared or carried forward at each rollover.
  • Check tables for customer and employee personal data. Access files often sit on shared drives with no access control, so ask who could open each file.
  • Search VBA modules, macros, pass-through queries and linked-table Connect strings for passwords, user names, server names and file paths, and confirm they were removed.
  • Ask how forms, reports and VBA were exported, and how Attachment, OLE Object and multi-valued fields were treated.

Delivery No files move before a signed license. A listing or a request grants no files by itself.

How licensing works through SourceX

  1. 1

    Define

    Send the domain, modality, volume, format, timeline and permitted use you need.

  2. 2

    Source

    SourceX identifies businesses that hold matching data and are open to licensing it.

  3. 3

    Qualify

    Fit, rights and quality are checked, and you review samples before committing.

  4. 4

    License

    Scope, permitted use, exclusivity, price and obligations are agreed in writing.

  5. 5

    Deliver

    Approved data is prepared, de-identified where required and transferred securely.

Questions Acquisition Partners ask

Can we get the original .accdb and .mdb files, or only extracts?

Either, depending on what the owner agrees to and how de-identification is done. Original files keep everything in one artifact, but personal data inside a binary file is harder to remove and verify than in extracted tables. An extract is therefore often the practical request: tables with a schema file, query SQL, and forms, reports, macros and modules as text.

Why does an Access file contain no data?

It is probably a front end. A split Access application keeps its tables in a separate back-end file, or in SQL Server or SharePoint, and the front end holds only linked tables that point there. For rows, the back end has to be supplied too, and a server back end needs its own scope and rights review.

How much history does an Access database hold?

Usually only what the builder designed in. Access overwrites a row when it is edited and keeps no log of changes or deletions. History comes from date fields in the tables, from audit tables some builders filled with VBA or data macros, and from dated copies of the file itself. Ask which of these exist before you specify a date range.

Is the VBA and query code useful if we do not use Access?

Yes, for most code and reasoning work. The SQL is a readable dialect with its own functions, and the VBA states business rules in short procedures tied to named forms and buttons. Paired with the tables and form definitions, it makes a full migration example: source application in, equivalent schema and logic out.

What personal data should we expect in Access tables?

Expect customer contacts, employee details and free-text notes, because staff built these databases to track people and jobs, often with no privacy review. Some hold identity numbers, payment details or health information typed into Long Text fields. Personal fields are removed or replaced before delivery and the method is recorded per dataset, but no method is perfect, so review a processed sample.

Is SourceX affiliated with Microsoft?

Microsoft Access is named to identify the system the records come from. That does not imply a partnership with or endorsement by Microsoft. The records belong to the business that runs Microsoft Access, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.

Evaluating this data for procurement?

Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.

Request dataset diligence

Tell us what your models need

Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.

Updated 26 November 2026.

See if your company qualifies