Skip to content
Auscultby NBIT
EN
Free diagnostic

Access error reference

Access error 3078: cannot find the input table or query

A query, a form or a button stops: the Access database engine “cannot find the input table or query”. The quoted name does not exist in the database — renamed, deleted, or misspelled in the code.

The message

Microsoft Access box: the database engine cannot find the input table or query 'Cutsomers'
The real Access box, in Access for Microsoft 365 in English, when opening a query that refers to the table “Cutsomers” instead of “Customers”.

The Microsoft Access database engine cannot find the input table or query 'Cutsomers'. Make sure it exists and that its name is spelled correctly.

English Access; the quoted name is the one your application asks for

On a French Access: « Le moteur de base de données Microsoft Access ne peut pas trouver la table ou la requête source « Cutsomers ». Assurez-vous qu’elle existe et qu’elle est correctement orthographiée. » Older versions say “The Microsoft Jet database engine”: it is the same error.

Where it shows up

In anything that reads a table or query by name: the FROM clause of a saved query or of SQL built in VBA, CurrentDb.OpenRecordset("…"), CurrentDb.Execute, DCount and DLookup (their second argument), the source of a form, a report or a combo box.

Common causes

  • a renamed table or query: Access sometimes fixes names in forms (Name AutoCorrect), never in SQL written in code;
  • a deleted object that another query still used, or a temporary table the code has not created yet;
  • a typo in SQL built in VBA, or a missing space: "SELECT * FROM" & strTable gives FROMCustomers;
  • a name with a space or special character not in brackets in a part of the SQL where Access reads it as a table name;
  • a linked table deleted or renamed after moving to SQL Server (a “dbo_” prefix added to the name).

How to reproduce and check it

  1. Look for the quoted name in the Navigation Pane, tables and queries: if it is not there, that is the cause.
  2. If it is there, the error comes from another query: open the failing query in SQL view and read its FROM clause.
  3. For SQL built in VBA, print it before running it (Debug.Print strSQL) and paste it into a new query.
  4. To see what uses an object before renaming it, use Object Dependencies (Database Tools tab).

How to fix it

Restore the expected name, or fix every query and every line of code that uses the old one. Put names in brackets in SQL. For a temporary table, create it before reading it, or check that it exists.

Types 1, 4 and 6 are local and linked tables, type 5 is queries. For names built in VBA, prefer "SELECT * FROM [" & strTable & "]": the brackets protect spaces and special characters.

What Auscult reports

The diagnostic records 3078 wherever Access returns it, with the object that produces it, and files it among missing sources. It cross-checks the message against the database structure: one missing object that brings down several forms is one cause, counted once. A “not found” error that Access reports but the structure does not confirm is reported as an “error to confirm”, outside the score.

The Access error reference, code by code

Frequently asked questions

I renamed a table and everything worked: why the error now?

Name AutoCorrect updates some objects when they are opened, not SQL written in code, nor queries nobody has reopened. The error appears the day one of them is used.

Can I find every place that uses a name?

Object Dependencies shows queries, forms and reports, but not VBA code. For code, use the VBA editor's search (Ctrl+F, “Current Project”) on the name.

Where are the other errors in your application hiding?

The diagnostic runs on your computer, on a copy of the application, without sending the data in your tables. The health grade and the summary are free.