Share via

Error using append query

Anonymous
2018-06-14T13:52:30+00:00

I have a number of linked ODBC database tables that I can open with no problems. I can use a query to open and filter the data as well, but when I try to use an append or make query to place the data into another table, I am getting the following error message.

            Cannot open database. It may not be a database that your application recognizes, or the file may be corrupt.

Any ideas as to why this would happen?

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Duane Hookom 26,825 Reputation points Volunteer Moderator
2018-06-14T18:21:15+00:00

You can export a query (I just tested) except apparently not a pass-through. If you are using ODBC Server it is typically more efficient to use pass-through queries if all of your tables are on the same "ODBC Server". You can create an Access query with a source of a pass-through query.

Without knowing your situation, I would still recommend using fewer queries and making them SELECT queries. It looks like you are breaking apart a table, creating separate tables, and the appending them back together.

When I need to use temporary tables, I typically create a temporary ACCDB file to store them. This avoids the bloat associated with make table and append queries.

Was this answer helpful?

0 comments No comments

5 additional answers

Sort by: Most helpful
  1. Duane Hookom 26,825 Reputation points Volunteer Moderator
    2018-06-14T18:44:18+00:00

    The pass-through queries use the SQL language from the server, not Access. They are typically quite similar but most ODBC servers have greater functionality.

    Let us know if you have more questions.

    Was this answer helpful?

    0 comments No comments