G
Guest
I import into Micorsoft Access a 200,000 record CSV file using VBA code
executed from within a form module. My biggest problem is that when I use an
SQL statement with the ORDER BY function to create a backup table of the
imported file, the new table is sorted incorrectly. Here is an example of
the recurring dillema: I execute the SQL statement, using the INSERT and
ORDER BY commands to create a new, sorted backup table of the original
imported table. Well, after the SQL command was executed, records 17,394 to
17,744 were placed at the very top of the new table (in chronological order),
while the other 199,000 records are placed in chronological order starting
immediately below the misplaced records. I am using Access 2002. My data
requires the records to be sorted correctly. I am sorting by a date/time
field. After nearly a hundred tests, I still have never seen the new table
sorted correctly. This seems to be an inherent flaw in Access. How can I
fix this?
executed from within a form module. My biggest problem is that when I use an
SQL statement with the ORDER BY function to create a backup table of the
imported file, the new table is sorted incorrectly. Here is an example of
the recurring dillema: I execute the SQL statement, using the INSERT and
ORDER BY commands to create a new, sorted backup table of the original
imported table. Well, after the SQL command was executed, records 17,394 to
17,744 were placed at the very top of the new table (in chronological order),
while the other 199,000 records are placed in chronological order starting
immediately below the misplaced records. I am using Access 2002. My data
requires the records to be sorted correctly. I am sorting by a date/time
field. After nearly a hundred tests, I still have never seen the new table
sorted correctly. This seems to be an inherent flaw in Access. How can I
fix this?