How to Import SQLite Tables into Access
Step 1: Open the SQLite file
The .db file is the whole database - tables and views listed with their row counts, and a query can stand in for a table.
Step 2: Pick the Access database
An existing .accdb or a new one the run creates. Writing needs the Access database engine on Windows, in the tool's bitness.
What Access Insists On
SQLite accepts whatever arrives and sorts it out at read time. Access writes a schema, and a schema has opinions - this is the direction where the target is the strict one.
Text has a length. TEXT in SQLite has none; Access's Short Text stops at 255 characters, so anything longer has to be mapped to Long Text. A wrong choice here truncates rather than fails.
There is no date type in the source. A SQLite date is text or an epoch integer with a convention behind it; Access has one real Date/Time type, and the mapping has to know the convention to use it.
Booleans are Yes/No, stored as -1 and 0. A column mapped from INTEGER 0/1 arrives readable, and then surprises whoever compares it with a value from Access itself.
There is no converter online for this direction, and it is a technical fact rather than a policy: writing an .accdb needs the Access database engine on the machine that writes it, so a file has to be produced somewhere with Windows and the engine installed. This runs as a desktop task with a free 30-day trial, fully offline - the database never leaves the machine, which for an Access file is usually the requirement anyway.
SQLite to Access — Type Mapping
Each SQLite storage class has to become something Access can declare:
| SQLite | Access | What to decide |
|---|---|---|
TEXT, short values | Short Text (255) | the common case - and the one that truncates if a row turns out longer |
TEXT, long values | Long Text | memo-style content has no length limit - map by what the column actually holds |
INTEGER PRIMARY KEY | AutoNumber | the one thing Access adds: new rows get the next key without help |
INTEGER | Number (Long Integer) | a plain number - no counter behind it |
REAL / NUMERIC | Double or Decimal | Decimal keeps money exact; Double is what SQLite's REAL already is |
| date stored as ISO text | Date/Time | the mapping converts it - provided the column really is ISO and not a local format |
0 / 1 | Yes/No | Access shows true/false and stores -1/0; the values read differently, the meaning does not |
BLOB | OLE Object | images travel; anything the OLE wrapper cannot describe is better left in a folder |
Two things are not copied because Access keeps them itself: the rowid order (row order in a table is not a property either database guarantees) and SQLite's indexes, which are rebuilt as Access indexes on the columns the queries use.
AutoNumber, and Why This Direction Feels Better
The pleasant part of this direction is that Access gives something back: a column mapped from INTEGER PRIMARY KEY can be declared AutoNumber, so the primary keys stop being a value somebody has to invent.
The old keys are copied as they are, which keeps every existing relationship readable; from the next insert onwards Access increments. That combination is what a cut-over wants - identical history, self-maintaining future.
The constraint to remember is the .accdb ceiling of 2 GB per database, which includes the OLE objects. A SQLite file that grew past that because of stored images will not fit in one Access file, and the images are the part to move out.
SQLite to Access — Quick Facts
- Source
- a SQLite 3
.dbfile: tables, views or a query - Target
- Access 2000–365: an existing
.accdb/.mdb, or one the run creates - Keys
- an
INTEGER PRIMARY KEYcan become an AutoNumber - new rows increment on their own - Text limits
- Short Text stops at 255 characters; Long Text has no practical limit
- Database size
- 2 GB per
.accdb, OLE objects included - CLI
- the saved task runs without a window, one command and one log
Common Pitfalls when Importing into Access
- Short Text truncates silently: a value longer than 255 characters disappears past the limit unless the column is mapped to Long Text.
- Yes/No is -1, not 1: the import writes true/false correctly, and any later query comparing with 1 or 0 has to know Access's convention.
- A non-ISO date becomes text: map a date column whose values read
15/03/2024and Access stores a string that sorts and filters wrongly. - AutoNumber is a decision, not a default: declare it, and Access keeps the old keys and increments from the highest; leave it a plain number and new rows get nothing.
- 2 GB is the whole file: a SQLite database that grew on stored images will not fit - OLE objects count against the same ceiling.
- A lock file appears next to the database:
.laccdbwhile it is open; a copy taken during a write can be inconsistent, so close it first.
Which Searches Land Here
This page imports SQLite tables into an Access database. The neighbouring searches below mean a different direction or a different target:
| What you searched | Meaning | Page |
|---|---|---|
| sqlite to access, convert sqlite to access, sqlite to accdb | this page | you are on it |
| access to sqlite, accdb to sqlite sqlite to access | the reverse direction | Access to SQLite |
| sqlite to dbf, sqlite to dbase | a DBF file as the target | SQLite to DBF |
| dbf to access, foxpro to access | a DBF/FoxPro source instead | DBF to Access |
| sqlite to sql server, sqlite to mysql | a server database as the target | SQLite to SQL Server |
| excel to access, csv to access | a spreadsheet or text file as the source | Excel to Access |
One query in SQLite decides most of the mapping: SELECT max(length(col)) FROM tbl for every text column - anything above 255 belongs in Long Text, and that is the difference between a complete import and a truncated one.
Verify Three Things After the Import
- Row counts per table against SQLite's
count(*)- and with the width decision above, a short count means rows were rejected. - The longest text value: find it with
max(length(col))in SQLite, then read that row in Access - truncation shows here first. - The key: the highest old key should be present, and the next insert in Access should increment past it - that is AutoNumber working with the imported history.
Frequently Asked Questions
.db file, choose the Access database, map every column to an Access type and run it. All tables can go into the same .accdb.INTEGER PRIMARY KEY it keeps the existing values and increments for new rows.15/03/2024 stays text..accdb uses the Access database engine on Windows, and its bitness has to match the tool's..accdb must not be open for writing during the run.Download Withdata DBCopier Now
Start importing SQLite tables into Access in seconds - free trial for Windows, Linux and macOS.
$75 one-time · volume discounts to $55 · 30-day money-back · pricing & licence terms

