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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple Lines

Status
Not open for further replies.

sf129

Programmer
Joined
Mar 6, 2003
Messages
6
Location
US
This is the exact value I have in a field in an access table. How do I get it all on 1 line instead of 6?


Import nine Tables
all Received data including their demo info

demo info (name type = example)
cal
history
 
if this data contains Line Feeds then you can test for that
and remove it...


Function fRemoveLineFeed(strIn as string)
dim x as Integer
dim strData as string, strPrevC as string
strPrevC = ""
For x = 1 to len(strIn)
If Asc(mid(strIn,x,1))< 32 Then
If Asc(mid(strIn,x,1)) = vbLf Then
If strPrevC <> space(1) Then 'Add a Space
strData = strData & &quot; &quot;
End If
End if
Else
strData = strData & Mid(strIn,x,1)
strPrevC = Mid(strIn,x,1)
End If

Next x

fRemoveLineFeed = strData
End Function

PaulF
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top