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!

Insert carriage return or line feed 1

Status
Not open for further replies.

daybase

Technical User
Dec 13, 2002
115
GB
I have a query that extracts data from text based memo fields (created by somebody else) originally designed to create html pages. My query strips out the html code using:

stripfile = replace(stripfile, "</font>", "")

I now want to take this further by introducing formatting depending on the text content - for example wherever the word "Location" appears I would like to insert a carriage return or line feed. I have tried

stripfile = replace(stripfile, "Location:", Chr(13) & " Location:")

But without success - all a bit of a mystery to me - any suggestions?

 
Perhaps this ?
stripfile = Replace(stripfile, "Location:", vbCrLf & " Location:")

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top