I'm jumping in here because I have the same problem. I am using Access
2003
SP3. The table is created with
Cnn.execute "CREATE TABLE " & Tbl0 & "(" & VFields & ")"
where
VFields = "VID char(15),Tw char(25),Pr char(5), ..." [35 fields, all of
type char(n)]
Then data are inserted with
Cnn.execute "INSERT INTO " & Tbl0 & " VALUES(" & ZT & ")"
where
ZT = "'a','b','c', ..." coming from a text file.
The text file was sorted; the resulting table is no longer sorted.
I would have used the "ORDER BY " feature but I'm sorting on 8 fields and
Access doesn't do the sort right either.
Thanks ahead of time for any suggestions.
Ken Snell MVP said:
Tell us some details... how did you do the import? I assume this is from
a
text file? Was the table already set up in your database before you did
the
import? Did you use an import specification? Show examples of data in the
file, and data from the table.
--
Ken Snell
<MS ACCESS MVP>
http://www.accessmvp.com/KDSnell/
The date being imported is in an ASCII file in a specific field order.
I
completed the import and the field order is rearranged. How can I stop
this?