Importing from excel Auto number

drusteeby

Registered User.
Local time
Yesterday, 18:05
Joined
Jul 9, 2009
Messages
29
I wrote some code so the user could push a button and import from excel, the problem is that my unique ID for my data is an autonumber and the data imported is not getting assigned one. How can I fix that?

Code:
DoCmd.TransferSpreadsheet transfertype:=acImport, TableName:=acTable, FileName:=Me.Text1, HasFieldNames:=True
 
I think you might be able to do that using an import specification.
 

Users who are viewing this thread

Back
Top Bottom