I'm baffled on this one, I have an MS access form bound to my SQL Server.
The memo field on the form is populated via a lookup table I use with the following code.
Now bear with me this is a PERL question....
However when I retrieve the record in PERL and issue
I just get the contents of the field with no HTML <br> or cr/lf characters, just a long spaced text string with the terms.
I have used the SQL enterprise manager to look at the raw data and the newlines are in the SQL as expected.
So somewhere the vbCrLf is falling of the content of the data, where could this be happening is it a problem with the Win32:ODBC function striping newline characters?
How do I deal with this ?
The memo field on the form is populated via a lookup table I use with the following code.
Code:
Dim sTerm As String
If Nz(Me!Lookup, "") = "" Then
MsgBox "Please select a look-up term first!"
Exit Sub
End If
sTerm = " [" & Me![Lookup] & "] "
If InStr(1, Me![See], sTerm, vbTextCompare) Then
MsgBox "Term already used"
Exit Sub
End If
Me!See = Me!See & " [" & Me!Lookup & "] " & vbCrLf
Me.Refresh
Now bear with me this is a PERL question....
However when I retrieve the record in PERL and issue
Code:
$$dt{'See'} =~ s/\n\r/<br>/g;
I just get the contents of the field with no HTML <br> or cr/lf characters, just a long spaced text string with the terms.
I have used the SQL enterprise manager to look at the raw data and the newlines are in the SQL as expected.
So somewhere the vbCrLf is falling of the content of the data, where could this be happening is it a problem with the Win32:ODBC function striping newline characters?
How do I deal with this ?