Autonumber/Excel

G

Guest

How can I import data from Excel into an Access table with a primary key of type Autonumber? If, for example, I have two fields in my table, the PK and a text field, and I import from a test spreadsheet that has one column, the text field, I get an error because there's only the one field. I can't imagine that Access wouldn't create the key for me, but that is certainly the way it's working for me. Is there a way to do this

Thanks in advance!
 
G

Guest

What I've done in the past is import the data to a new
table, then use an Append query to add the data from the
new table to the old table.

KW

-----Original Message-----
How can I import data from Excel into an Access table
with a primary key of type Autonumber? If, for example, I
have two fields in my table, the PK and a text field, and
I import from a test spreadsheet that has one column, the
text field, I get an error because there's only the one
field. I can't imagine that Access wouldn't create the
key for me, but that is certainly the way it's working
for me. Is there a way to do this?
 

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