R_McCallan
New Member
- Joined
- Aug 17, 2010
- Messages
- 9
I have exported some data from Access to Excel (2010) and once exported to access the data is in a different order from when it was in the query. The data is all under the correct headers but each column is randomly ordered.
The query is in the following order (by fieldnames) CompanyName, CompanyAddress, TownCity, Postcode, ContactNumber1, WebsiteAddress, VATNumber, CompanyContact and CompanyType. The export comes out in this order (by header names) CompanyAddress, CompanyContact, CompanyName, CompanyType, ContactNumber1, Postcode, TownCity, VATNumber, WebsiteAddress.
There is an intermediary table which may be affecting the order, tbl_ExportDetails gives the fieldnames new header names for the export (I have used the original field names above so as not to confuse). Within the export details table, the fields are in the same order as in the original query so I don't see why they have been randomised!
Any help is much appreciated
Thanks
Rebecca.
The query is in the following order (by fieldnames) CompanyName, CompanyAddress, TownCity, Postcode, ContactNumber1, WebsiteAddress, VATNumber, CompanyContact and CompanyType. The export comes out in this order (by header names) CompanyAddress, CompanyContact, CompanyName, CompanyType, ContactNumber1, Postcode, TownCity, VATNumber, WebsiteAddress.
There is an intermediary table which may be affecting the order, tbl_ExportDetails gives the fieldnames new header names for the export (I have used the original field names above so as not to confuse). Within the export details table, the fields are in the same order as in the original query so I don't see why they have been randomised!
Any help is much appreciated
Thanks
Rebecca.