Hi All,
Here is my problem...I have a bunch of code that inserts records into a temp table that I've created and I export that table for upload to an ERP system. I realized now that the data isn't sorted when it's exported to a CSV file.
I either want to sort the data in the table using docmd.runsql UPDATE tablename before I export it, or use docmd.runsql SELECT and ORDER BY and put it in a recordset and then export it, but I'm not successful in either approach. I was hoping someone could give me some guidance.
I can't believe I've gotten this far and now I'm stumped on something as simple as a sort!
Dave
Here is my problem...I have a bunch of code that inserts records into a temp table that I've created and I export that table for upload to an ERP system. I realized now that the data isn't sorted when it's exported to a CSV file.
I either want to sort the data in the table using docmd.runsql UPDATE tablename before I export it, or use docmd.runsql SELECT and ORDER BY and put it in a recordset and then export it, but I'm not successful in either approach. I was hoping someone could give me some guidance.
I can't believe I've gotten this far and now I'm stumped on something as simple as a sort!
Dave