Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export to csv in sequence?

Status
Not open for further replies.

wjl11

IS-IT--Management
Jun 20, 2002
34
US
I have a table that I sorted in zip code sequence. When I export the table to a csv file, it comes out in the original sequence (random). How do I export a file in the same sequence as the table view?
 
Create a query that contains the sort order that you want and then instead of exporting the table, export the query.

Assuming you want all the fields, you can do something like this in SQL View...

Select * From Table Order By ZipCode;

You can also use the query grid in Design View and then choose Ascending in the Sort under the field you want to sort by.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top