MS Access through ODBC: "File not found (2)" on a table with an underscore in its name - it was a typo

Applies to: Clarion 8 gold with the Microsoft Access ODBC driver 4.00.6305.00; a Clarion 6 (9056) report is cited for comparison.

Problem

Importing an Access table whose name contains an underscore (such as tbl_account) gave "File not found Error (2)". A table in the same database without an underscore (tblaccount) imported and opened without trouble. The poster read that as ODBC not liking underscores, and the data is read from a file made by another application.

Solution

  1. Check the table and file names for a typing mistake before blaming the underscore. The poster found a typo in his own project, and then reported no problem importing an Access table with an underscore.
  2. To see whether the data can be read at all, a third-party ODBC viewer helped him find that his files were readable.

Caveats

  • A poster has run a Clarion 6 (9056) app against an Access file with underscores in both the .mdb file name and the table names, with an ODBC driver attribute string that sets an AUTOINC select, OWNER('MS Access Database;DBQ=.\form_data_be.mdb') and NAME('Form_Header'), with no problem. He did not test it on Clarion 7 or 8.
  • A different underscore issue was mentioned for column names: a NAME attribute in quotes is sent to the driver as [underscore_column], which SQL Server accepts and other databases may not; taking the quotes off the NAME attribute was suggested. This was for column names, not table names.
  • Another poster reported that a table with an underscore failed to import from a TXD or DCTX. The thread does not settle that and the original poster's problem was the typo.

Today (2026)

Likely unchanged: an underscore in the name is not a cause by itself. Not re-tested.

Sources: Billy R. (Sep 2011, the question and the finding), JP G., R. E., Jon W. (Sep 2011) in softvelocity.clarion.databasedrivers.