Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: removing linebreaks from memo field


Message #1 by "Warren Nash" <wjcnash@b...> on Thu, 22 Mar 2001 16:43:24
Hi 

I am trying to remove the line breaks from a large string that is entered 

by a user. I am using this string in an email that I generate and also 

inserting this string into a memo field in an access database. I am using a 

program to extract this data from the email and put it into a custom 

database on my machine. This program will not accept any data after a line 

break. I have tried replacing the vbcrlf with "" like so



Function ReplaceNewline(str)

	ReplaceNewline=Replace(str, VbCrlf, "")

End Function



But this doesn't seem to work. I am generating a text email and not an html 

email.



Any help would be appreciated

Thanks in advance

Warren

  Return to Index