I'm trying to import an excel spreadsheet that has one field with more than 255 characters sometimes. So far, I've tried linking to the spreadsheet and using this ACImport VBA and both have continued to truncate this field to 255 characters.
The only way I've been able to get it without truncation is by using the Access menus (External Data - Import) dialog. I've also saved the import and can import successfully every time. But I would like to use a button on a form with VBA instead.
Any ideas?
Code:
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel12Xml, tblName, CurrentProject.Path & "\" & WbName, True
The only way I've been able to get it without truncation is by using the Access menus (External Data - Import) dialog. I've also saved the import and can import successfully every time. But I would like to use a button on a form with VBA instead.
Any ideas?