MSAccessRookie
AWF VIP
- Local time
- Today, 15:37
- Joined
- May 2, 2008
- Messages
- 3,428
I have the following command that is being used to import an Excel Spreadsheet containing Invoices into an Access Database Table called tblInvoices
When Access imports the data, it ignores the Text setting, and creates a Number Type Field instead, resulting in 15 conversion errors. Any idea as to what I am doing incorrectly?
DoCmd.TransferSpreadsheet acImport, , "tblInvoices", strSourceInFile, True
The import works fine with the exception of the Column that contains the Vendor Invoice Number. The reason for this is that although most of the values in the Vendor Invoice Number Column appear to be Numeric, there are a few (15 so far) that contain Alphanumeric Data. As a result, the Column itself has been defined as Text.
When Access imports the data, it ignores the Text setting, and creates a Number Type Field instead, resulting in 15 conversion errors. Any idea as to what I am doing incorrectly?