Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Send object force new line after date

Status
Not open for further replies.

Costefran

Technical User
Jan 2, 2008
197
GB
Hi

Another question

I am using sendobject method to send an email with text taken from my current form (in a comments box)

Comments are entered over a varied time period with each comment being preceeded with a date stamp

Is there anymay to force a new line in the text using Chr(13) on the start of each date stamp so the email text looks something like

01/01/2008 Comment 1
02/02/2008 Comment 2
03/03/2008 Comment 3

Thanks
 
Looks like you would have to parse through the Comment field to figure out where dates are (maybe by looking for pattern ##/##/####) to insert vbCrLf (instead of Chr(13)).

Of course, the ultimate best choice would be to normalize the table so there are multiple comment records related to a parent table. Then you would not be required to do this kind of guessing where to split up the records.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top