Copy data from Excel (Ctrl+C) text number

B

Boon

Hello,

When I copy the data from Excel and paste in into the table in Access, some
weird things happen.

If the first row first column in excel is numeric, and the rest in the first
column is numeric, everything will come into Access when I copy.

But if the first row first column in excel is numeric, and the rest in the
first column is text, it will come into Access just one row.

Would you explain what is happening here?

Thanks,
B
 
J

John W. Vinson

Hello,

When I copy the data from Excel and paste in into the table in Access, some
weird things happen.

If the first row first column in excel is numeric, and the rest in the first
column is numeric, everything will come into Access when I copy.

But if the first row first column in excel is numeric, and the rest in the
first column is text, it will come into Access just one row.

Would you explain what is happening here?

Thanks,
B

Access has much stronger datatyping than Excel. Since Access can't determine
the appropriate datatype from the properties of the spreadsheet, it must guess
by reading the first row (or first few rows).

I'd use File... Get External Data... Import rather than copy and paste; and
I'd create the table first, with the appropriate data types, so Access won't
have to guess. If that's impractical then you may need to insert a row at the
top of the range you're importing with "This Field Is Text" in the mixed
numeric and text column, just to whack Access upside the head.
 

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