Breaking up a sting

garyd1234

Board Regular
Joined
Apr 17, 2003
Messages
103
Hi,
I have a text box on a form that i want someone to enter text into line by line. They will break the lines by pressing CTRL ENTER to go to a new line. I want to break up the text box into its respective lines and read where they pressed ctrl enter.
Example
This is line 1
This is line 2
This is line 3

I want to take each of these sentences and put them into seperate records in my database. How do I split it apart since, when I print the contents of the text box, this stuff is all concatenated together with little boxes in between them where the carriage returns are? Thanks
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Hi Gary,
is there any reason why you can't provide the users with a subform in Datasheet view, displaying only the field that you want to use for data entry? That way, they place the data in separate records automatically.
If I have missed the point, please let me know.

Denis
 
Upvote 0

Forum statistics

Threads
1,221,798
Messages
6,162,027
Members
451,737
Latest member
MRASHLEY

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top