Import Field Problem

B

bdehning

Importing Numbers 9500-1, 8678-02 for example from Excel to Access and get
type conversion failure. What format do I need to use that would allow this
records to be imported to Access?
 
T

Tom Wickerath

Hi Brian,
Importing Numbers 9500-1, 8678-02....
These are not numeric. They are text. Try importing into a text field.

Tom
_______________________________


Importing Numbers 9500-1, 8678-02 for example from Excel to Access and get
type conversion failure. What format do I need to use that would allow this
records to be imported to Access?
 
B

bdehning

Tom, I made format in excel, text but How do I force access to take as text.
I think when I import to a new table in Access it is trying to use a number.
Can't figure out the problem
 
B

bdehning

Tom, Finally got. My existing table from 2000-97 back conversion changedn
field so I just created a good tabel for the import and works fine now.

Thank You
 
T

Tom Wickerath

Hi Brian,
I think when I import to a new table in Access it is trying to use a number.
This makes sense if the first 8 records in Excel are numeric, and then they become text with the
hyphens included. The wizard will make a best guess at the data type, depending on the first 8
rows. So, if you had something like:

23
45
52
34
95
49
87
21
9500-1
8678-02

You will end up with a numeric datatype that will choke on the 9th and 10th records. Rather than
let the wizard attempt to guess the best datatype, you can create the table in advance in Access,
and then specify this table as a step of the import wizard. Your Excel file will need to include
column headings, in order that the choice to use an existing table be available. The field names
in your Access table should match the column headings in the Excel file.

The following KB article includes some information you may find useful in the cause paragraph:
http://support.microsoft.com/?id=208414

Tom
______________________________


Tom, I made format in excel, text but How do I force access to take as text.
I think when I import to a new table in Access it is trying to use a number.
Can't figure out the problem
_______________________________


Hi Brian,
Importing Numbers 9500-1, 8678-02....
These are not numeric. They are text. Try importing into a text field.

Tom
_______________________________


Importing Numbers 9500-1, 8678-02 for example from Excel to Access and get
type conversion failure. What format do I need to use that would allow this
records to be imported to Access?
 
J

John Vinson

Importing Numbers 9500-1, 8678-02 for example from Excel to Access and get
type conversion failure. What format do I need to use that would allow this
records to be imported to Access?

The field needs to be Text (if it's numeric, the best you can expect
is to get 9499 and 8676 imported). You'll probably need to set the
fields in Excel to '9500-1 and '8678-02 (with the quote) if they're
not already, and import into a preexisting Text type field rather than
trying to import into a new table.

John W. Vinson[MVP]
 
B

bdehning

John and Tom,

What I did learn is that if the table being imported into is empty and the
first record in the Excel Spreadsheet is the text that could cause the
problem such as 9090-1 then everything imports fine. Otherwise you will get
the import error or if if don't delete records from the Access Table being
imported into it does not overwrite the existing file.

This may help others.

Thanks again
 
Top