rickyoswaldiow
Programmer
Good evening all. Today I am trying to store the text typed into a text box into a database. Very simple you may say, but here's the catch; The text box is multi-lined and there is a seperate record for each line in the database. For example, the user will enter his address as follows
House Number
Street Name
City
State
But in the database there are seperate fields for each line; Address1, Address2...
Would it be easier to simply go back and change the form design to accomodate 5 seperate text boxes? There are a *lot* of references to the way I have it set up already, currently it reads from the database using this method:
I'm guessing there is a way to read through a string and check for the vbCrLf or similar? Any help would be greatly appreciated!
House Number
Street Name
City
State
But in the database there are seperate fields for each line; Address1, Address2...
Would it be easier to simply go back and change the form design to accomodate 5 seperate text boxes? There are a *lot* of references to the way I have it set up already, currently it reads from the database using this method:
Code:
with rsAddress
Me.txtAddress = !Address1
Me.txtAddress = me.txtAddress & vbCrLf & !Address2
Me.txtAddress = me.txtAddress & vbCrLf & !Address3
end with
I'm guessing there is a way to read through a string and check for the vbCrLf or similar? Any help would be greatly appreciated!