CreganTur
05-04-2009, 12:21 PM
I've got a procedure that worked for over a year that is now breaking, and I have no idea why.
The code creates a linked table out of a chosen Excel workbook, runs some validation on the contents of the table, and then appends the records to an existing table in Access. One of these fields is a memo field- it holds detailed comments from an agent regarding a record.
When the memo field was viewed in a form, you saw the entire contents of the field.
Now, however, the memo field is being split. When you view it on the form, the text is cut off randomly - and I do mean random. I've checked the length of the truncated pieces, and it is never the same. Also, there isn't a similar character at the splits.
When I look at the contents of the memo field in the table itself, I find the same thing- the text stops. I'm moving through the text by highlighting it and dragging my cursor to move through the text. When I get to the end of the line, where the text is split, I can move my cursor down, which will drop me to a new line within the memo field. I find the missing text (the rest of the memo field) on this line... but it will not show up on the form.
I can reporduce this error by importing the spreadsheet into the Access table using File->Import, TransferText also causes the error, changing the data into a text file and then importing it also causes this error.
Has anyone run into something like this before?
The code creates a linked table out of a chosen Excel workbook, runs some validation on the contents of the table, and then appends the records to an existing table in Access. One of these fields is a memo field- it holds detailed comments from an agent regarding a record.
When the memo field was viewed in a form, you saw the entire contents of the field.
Now, however, the memo field is being split. When you view it on the form, the text is cut off randomly - and I do mean random. I've checked the length of the truncated pieces, and it is never the same. Also, there isn't a similar character at the splits.
When I look at the contents of the memo field in the table itself, I find the same thing- the text stops. I'm moving through the text by highlighting it and dragging my cursor to move through the text. When I get to the end of the line, where the text is split, I can move my cursor down, which will drop me to a new line within the memo field. I find the missing text (the rest of the memo field) on this line... but it will not show up on the form.
I can reporduce this error by importing the spreadsheet into the Access table using File->Import, TransferText also causes the error, changing the data into a text file and then importing it also causes this error.
Has anyone run into something like this before?