Open HughWarrington opened 3 months ago
Yes, it looks like we should test to ensure the table exists and is available before attempting an export of the data. Good idea!
Added some code to ensure the availability of the target for linked tables, and logs the error more clearly for the user.
Brilliant! Thank you.
If this is working @HughWarrington, can you close it? Thank you!
Running with debug enabled.
I think the screenshots help explain what's going on.
It's trying to export data from a table.
clsDbTableData.GetTableExportSql
has generated a select query that is missing theORDER BY
columns at the end. I'm guessing this is because the table in question is a linked table that cannot be found on disk.I'm not sure what the conventions are in this project (or in Access/VB in general) but perhaps we should instead log a meaningful warning saying 'missing linked table' or similar.