Create Primary Key on Importing Table

daved2424

Registered User.
Local time
Today, 02:07
Joined
Jun 28, 2001
Messages
20
I am importing an Excel Workbook into a table by usng the following piece of code:

Code:
    DoCmd.TransferSpreadsheet acImport, 8, "tblCalls", "C:\Documents and Settings\David\My Documents\Phone Bill Checker\Calls" & s & ".xls", True, ""

How would I modify this so it also created an auto number field which was the primary key?
 

Users who are viewing this thread

Back
Top Bottom