Skip to content
Advertisement

Access – Query not executable

The error is “The query must be based on at least one table or query”.

The query:

Our “Gehaltsabrechnung” table

Advertisement

Answer

You want INSERT . . . SELECT. In MS Access, this would look like:

Notice that I replaced most of the 2s with references to m.MitarbeiterID. This helps ensure that typos won’t affect the query.

I would also recommend using qualified column names in the subquery, but this version should work.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement