Importing Data from Access to Excel

Mat1024

Registered User.
Local time
Today, 12:01
Joined
Apr 7, 2005
Messages
11
Hi everyone,

I have a strange problem: when I import data from access to excel, sometimes, the order of the fields get mixed up :confused:

Example of normal order:
1
2
3
4
5

Example of mixed up order:
5
3
4
1
2

I don't know what is the matter, as it only happens sometimes. Can you help me?

(the database is on a shared computer and the other computers import the data from it)
 
Assuming that you import from an Acess query, make sure that the field
with the 1, 2, .... number is sorted ascending. If not make the sort :ascending part of the querydef.
 
Do you mean that the fields are mixed up or that the records are mixed up? If it's the fields, thats worrying. If it's the records, then there is no order to records in a table, unless you impose one. A Table is an unordered recordset.
 
rak said:
Assuming that you import from an Acess query, make sure that the field
with the 1, 2, .... number is sorted ascending. If not make the sort :ascending part of the querydef.

I use the "Import External Data" Function of Excel, and then import the whole database.
 
neileg said:
Do you mean that the fields are mixed up or that the records are mixed up? If it's the fields, thats worrying. If it's the records, then there is no order to records in a table, unless you impose one. A Table is an unordered recordset.

You are right, it is not the fields but the records. The strange thing is that only the beginning of the records (10 records) are mixed up. The following records are perfectly sorted... :confused:
 
Mat1024 said:
I use the "Import External Data" Function of Excel, and then import the whole database.

I would suggest to use the export function in Access rather than the import function in Excel.

Nevertheless, when using the import function in excel, you can only import tables and/or queries.
As I said before, if you sort the tables and the queries on the field that you require the data to be in line in excel, the import should be succesfull.
 

Users who are viewing this thread

Back
Top Bottom