Ravensleach
Programmer
I have a command button that produces a text file, one string per record combining many fields. Here is the problem part of the code:
The address string it produces strips out the line breaks in the table field and puts TWO commas between each line. I want it to produce just one comma and have tried many variations but it if the code doesn't break it always puts two in. Please, can anyone tell me what I should do?
Many thanks
Code:
If Not IsNull(rsHBData.Fields("Address")) Then
strAddress = rsHBData.Fields("Address")
strAddress = StripLineBreaks(strAddress, ", ", 0)
Else
strAddress = ""
End If
Many thanks