I am using the follwoing to import an Excel spreadsheet:
The problem is most of the fields need to be Memo type, which isn't what Access defaults to. So my fields are getting cutoff.
What is the better way to import the spreadsheet?
Thanks. Sean.
Code:
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "Sheet1", sFile, False
DoCmd.RunSQL "ALTER TABLE Sheet1 ADD COLUMN ID COUNTER(1,1) CONSTRAINT PrimaryKey PRIMARY KEY;"
The problem is most of the fields need to be Memo type, which isn't what Access defaults to. So my fields are getting cutoff.
What is the better way to import the spreadsheet?
Thanks. Sean.