Ivan Howard
Active Member
- Joined
- Nov 10, 2004
- Messages
- 333
Hello all,
Please could someone kindly give me a hand. I have been looking for a solution for 2 days and keep turning up empty handed.
I am using the following VBA code to import data from a predefined spreadsheet containing 84 columns into an existing Access Table. The macro imports 83 of the columns 100% accurately and I don't get any run-time errors. The issue that I have is that the remaining column is a "Comments" field that contains some records with more than 255 characters. These records gets truncated every time I run the process.
The "Comments" column in the spreadsheet has been run through Text To Columns as "Text" and the cell formatting has also been set to "Text".
The "Comments" field in the Access Table is set to "Long Text" and it does not contain any formatting parameters (@) at all.
I have removed the "Comments" field, saved the Table, Compact and Repaired the database and recreated the field and it still won't import the dataset without truncating the "Comments" field.
Any ideas as to what I might be doing wrong?
Thanks very much in advance.
Ivan
Please could someone kindly give me a hand. I have been looking for a solution for 2 days and keep turning up empty handed.
I am using the following VBA code to import data from a predefined spreadsheet containing 84 columns into an existing Access Table. The macro imports 83 of the columns 100% accurately and I don't get any run-time errors. The issue that I have is that the remaining column is a "Comments" field that contains some records with more than 255 characters. These records gets truncated every time I run the process.
The "Comments" column in the spreadsheet has been run through Text To Columns as "Text" and the cell formatting has also been set to "Text".
The "Comments" field in the Access Table is set to "Long Text" and it does not contain any formatting parameters (@) at all.
I have removed the "Comments" field, saved the Table, Compact and Repaired the database and recreated the field and it still won't import the dataset without truncating the "Comments" field.
VBA Code:
DoCmd.TransferSpreadsheet acImport, 10, strTableToRefresh, strSourceFileFullPath, True, strSourceFileImportRange
Any ideas as to what I might be doing wrong?
Thanks very much in advance.
Ivan