Jerry,
First, I have tried use "DoCmd.TransferText acExportDelim, "mySpec",
"myQry", "c:\invoices.txt". It did not work out for me since I keep getting
error "3011". It looks like I can not use my current spec. I don't know why,
output result is the same as before.
Then I tried use "select... into" query to select all field ecept the
LineNumber field from that table but order by linenumber into a temp table.
It was ok when I exported about 250 invoices, then 1024 invoices. But, when I
tried to export about 13000 invoices this time. The records jumped again.