suggests that the 3 lost records had duplicates in the primary key field.
From that I assume that you are importing into an existing table in access.
If the primary key field has a unique index, it would prevent importing
duplicates in that field.
What happens if you import into a temporary table by selecting new table
from the import wizard?
Can you see 3 duplicates for the primary key field?
Jeanette Cunningham
Hi Jeanette,
Many thanks for your quick reply.
I apologise, I should have been clearer.
I am importing into an existing table in Access. I want the date information
I am importing to be placed under the relevant date field I have in the
table. There is an existing record in the field that the primary key refers
to but I want to use that to reference which recod the date goes into.
Eg, the following I wish to import is in an excel spreadsheet:
PK Date
89392 28/02/08
89201 29/02/08
In the access table I already have a record with the PK 89392 and 89201 but
the Date field is blank. So I wish to have this date information placed in
the date field corresponding to the relevant record.
I though Access could do that or is that not possible???
Thanks
Chappy.
> Chappy,
> the error message
[quoted text clipped - 39 lines]
> > Cheers,
> > Chaps
Jeanette Cunningham - 29 Feb 2008 02:07 GMT
Doing that is a horse of a different colour.
What you require is an update query, not an append.
Importing into the existing table is the same as appending.
An update query is used to update one field using a matching field from one
table to another.
Hint - make a backup of your table before you run this query.
If you link your database to the excel spreadsheet, try creating an append
query by joining the spreadsheet to the existing table on the PK field in
query design view.
I haven't tried this myself using an excel spreadsheet- but it might work.
Change the query to an update query and in the Update To row, under
TheDateField, put the table name and field name from the spreadsheet,
In the Criteria: row, under TheDateField, put Is Not Null.
Run the query.
Jeanette Cunningham
> Hi Jeanette,
>
[quoted text clipped - 74 lines]
>> > Cheers,
>> > Chaps