Sub a()
Dim strArr() As String
Dim var As Variant
strArr = Split(MyTextBox, Chr(13)) ' Chr(13)-> newLine Char.
For Each var In strArr
'Insert var
Next
End Sub
I am making a db for different courses in a school. Each chapter of each course has 2 guaranteed requirements to teach. However each chapter could have several other requirements. I want to put a multi line field and each line they enter would be a requirement.
Marlan,
Thanks you got me on the right track. The only thing I had to change was after each text there is chr(13) and chr(10). The code looked like this.
Code:
Dim txtstr() As String
Dim txtvar As Variant
txtstr = Split(Me.Text0, Chr(13) & Chr(10))
For Each txtvar In txtstr
Insert Query
Next
End Sub