gstreichan
Registered User.
- Local time
- Today, 10:27
- Joined
- Apr 1, 2014
- Messages
- 34
Dear Experts,
I have been looking for a solution as there are lots of threads on the topic, but I can't figure out. I have a template in excel users fill out and several times they enter line breaks in excel field. When copying data from excel and pasting in a Datasheet form, the different words are entered together as:
Excel Field Access Field after pasting (result) How I want to update description in approveddesc field
Wison Thompson Wison ThompsonAvenue Third28900 Wison Thompson, Avenue Third, 28900.
Avenue Third
28900
It is ok to remain like this but what I want is the update query to update this description in another field "ApprovedDesc" as Wison Thompson, Avenue Third, 28900. Basically the description will be created in another field in same table with commas replacing the line breaks. In addition, when pasting a field from excel with line break to access table, it seems to have a space in the end of the description, which is not really a space as when I try deleting it, it deletes the last letter of description.
On update query I tried to update to in ApprovedDesc with Replace([UserDesc],Chr$(13) & Chr$(10), ", ") but it doesn't work, it works only if I do Alt+Enter in access itself but when description is pasted from excel as Access Field after pasting (result) it seems access doesn't read any line breaks there.
How do I get around of this, please?
I have been looking for a solution as there are lots of threads on the topic, but I can't figure out. I have a template in excel users fill out and several times they enter line breaks in excel field. When copying data from excel and pasting in a Datasheet form, the different words are entered together as:
Excel Field Access Field after pasting (result) How I want to update description in approveddesc field
Wison Thompson Wison ThompsonAvenue Third28900 Wison Thompson, Avenue Third, 28900.
Avenue Third
28900
It is ok to remain like this but what I want is the update query to update this description in another field "ApprovedDesc" as Wison Thompson, Avenue Third, 28900. Basically the description will be created in another field in same table with commas replacing the line breaks. In addition, when pasting a field from excel with line break to access table, it seems to have a space in the end of the description, which is not really a space as when I try deleting it, it deletes the last letter of description.
On update query I tried to update to in ApprovedDesc with Replace([UserDesc],Chr$(13) & Chr$(10), ", ") but it doesn't work, it works only if I do Alt+Enter in access itself but when description is pasted from excel as Access Field after pasting (result) it seems access doesn't read any line breaks there.
How do I get around of this, please?