dbTalk Databases Forums  

Error When importing data from Excel into access 2007

comp.databases.ms-access comp.databases.ms-access


Discuss Error When importing data from Excel into access 2007 in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Dominic Sundar
 
Posts: n/a

Default Error When importing data from Excel into access 2007 - 11-03-2011 , 05:58 AM






Hey there
on a daily basis i import data from an excel sheet into access and
append it to a particular , in this table there is the ID field which
auto generated and also
the primary key for the table.
what i did first was to export that table to excel and use that file
as a template for importation.
whilst importing i have a error that i have violated the primary key.
however in the excel file i do not put any data in that field as i
know it is auto generated ...

any ideas fellah's

Reply With Quote
  #2  
Old   
Patrick Finucane
 
Posts: n/a

Default Re: Error When importing data from Excel into access 2007 - 11-03-2011 , 08:15 AM






On Nov 3, 6:58*am, Dominic Sundar <dasun... (AT) gmail (DOT) com> wrote:
Quote:
Hey there
on a daily basis i import data from an excel sheet into access and
append it to a particular , in this table there is the ID field which
auto generated and also
the primary key for the table.
what i did first was to export that table to excel and use that file
as a template for importation.
whilst importing i have a error that i have violated the primary key.
however in the excel file i do not put any data in that field as i
know it is auto generated ...

any ideas fellah's
Sounds like you need to exclude the key on Export or make the
autonumber field a Long instead when importing or use an ImpExp spec
that skips that column.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.