V. newbie question this. Never done an import before and falling over at first attempt. Any help would be appreciated. The answer must be in this forum somewhere but I did a search on key words "autonumber import" as search criteria and it only came up with 2 hits of no relevance to my problem, so here goes:
I have a mature Access 2003 database that contains a table T_Clients
I also have an Excel 2003 workbook that contains just one worksheet, containing a large number of records that I wish to append to the table T_Clients. Row 1 of the worksheet contains header names that match, in order, the fields in T_Clients.
The first field in T_Clients (called ID_Clients) is the key field and has data type AutoNumber. Column A of the spreadsheet is labelled ID_Clients in row 1 but is otherwise a blank column.
Did I do that right? I suspect not, because when I run the wizard, none of the records are imported but instead a new table of error messages is created which is populated entirely by messages stating "null value in an autonumber field" referring to field ID_Clients.
I tried deleting column A of the spreadsheet but it still came up with all records lost due to key violations or something about referential integrity. This time it did not create any new table of error messages, though, so perhaps I was right to delete the ID_Clients column from the spreadsheet but there is something else wrong with the data.
One thing I have succeeded in doing is to import the spreadsheet into a new table. The data types of the fields in the new table in some instances do not match the data types of the corresponding fields in T_Clients. In most cases it seems to be because certain fields had no value for any of the imported records, ie the entire relevant column in the workbook was blank, and the imported field was assigned datatype "Text" where in T_CLients it was "yes/no". Would this be a cause of my problems?
Would I be advised to import the spreadsheet into a new table and then try to merge the tables? No sure how to do that merger (could not find it in the help system in Access).
SUPPLEMENTARY QUESTION
Some of the fields in T_Clients are of datatype Yes/No and the display control is a checkbox. The spreadsheet currently uses the boolean values True or False to reflect whether the checkbox should be ticked or blank respectively. Is that the (or a) correct way to do it? Or should I enter "Yes" or "No" in these fields, or perhaps numerical values 0 and -1?
(Sorry to be so long-winded)