I'm merging a couple of ODBC tables (Invoice and Customer in a Firebird database) using an Access query which sorts by date first and then customer number (both descending), and then exports the table to an Excel file. I have noticed that sometimes the sorting is off. For example, if I want a list from the last three months (September 16 to January 16), the first entries should be from January 16, but the first 40 entries are instead from December 31, then it will jump Forward to January 16 (where it should have correctly started) and continue sorting correctly all the way down, except the 40 entries from December 31 are not where they should have been. Where the 40 entries should have been, it just immediately jumps to the next record after the 40.
It's as if it were correct except that 40 entries from December 31 where cut out and pasted to the beginning. And it's not all of the entries from December 31, just a block of 40 taken out of the middle of that day. It's not that it's somehow sorting by customer number first either, because the customer numbers in the failing 40 should also appear further down.
The majority of the time the Excel table is completely correct. The anomaly only appears about 1 in 15 times the export is run.
What can be the culprit here? Can ODBC connections result in incomplete transmissions of data for Access to work with?
It's as if it were correct except that 40 entries from December 31 where cut out and pasted to the beginning. And it's not all of the entries from December 31, just a block of 40 taken out of the middle of that day. It's not that it's somehow sorting by customer number first either, because the customer numbers in the failing 40 should also appear further down.
The majority of the time the Excel table is completely correct. The anomaly only appears about 1 in 15 times the export is run.
What can be the culprit here? Can ODBC connections result in incomplete transmissions of data for Access to work with?