Imported numbers from Excel change to scientific notation

G

Guest

While in Excel I have changed my 10 digit account numbers into text format,
and then I import them into Access. Frequently, these numbers do not convert
correctly. They get converted into scientific notation and the trailing
numbers are lost. While converting Excel into Access, is there some way to
keep all the digits intact?
 
J

Jeff Boyce

Import as text, into a temporary table.

Append from the temporary table into the final table structure, using
queries. Force the text into the correct (integer, single, double) datatype
explicitly with CInt(), ... functions.

Regards

Jeff Boyce
Microsoft Office/Access MVP
 
G

Guest

This might work but, it is WHILE I am Importing as text into a temporary
table that the account numbers are changed to scientific notation format.
 
J

Jeff Boyce

I mis-spoke.

Create a table with text-type fields. Import into that table (I named it a
"temporary" table because it won't be the final version.)

This allows you to import values into a known table structure, rather than
relying on the wisdom of the wizard to decide.

After your data is in the "temporary" table, run the queries that parse and
coerce the data into the "permanent" tables with the correct data types.

Regards

Jeff Boyce
Microsoft Office/Access MVP
 
G

Guest

It worked. Thanks.

Jeff Boyce said:
I mis-spoke.

Create a table with text-type fields. Import into that table (I named it a
"temporary" table because it won't be the final version.)

This allows you to import values into a known table structure, rather than
relying on the wisdom of the wizard to decide.

After your data is in the "temporary" table, run the queries that parse and
coerce the data into the "permanent" tables with the correct data types.

Regards

Jeff Boyce
Microsoft Office/Access MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top