I'm having trouble inserting a vbCRLF within variable text into a SQL server database field. I'm trying to do something like:
sText = sLogon & chr(13) & chr(10)
objForm.ADORecordset("fieldname" = sText
Or
sText = sLogon & vbCRLF
objForm.ADORecordset("fieldname" = sText
and then trying to later retrieve that database field text with stored Carriage Return Line Feeds and have it break properly in a Response.Write statement like:
response.write objForm.ADORecordSet("fieldname"
This method does not seem to work. The output just wraps with no breaks. Do I need to do a parse routine or something to get my desired results? I don't think the CRLF's are being saved to the database field.
sText = sLogon & chr(13) & chr(10)
objForm.ADORecordset("fieldname" = sText
Or
sText = sLogon & vbCRLF
objForm.ADORecordset("fieldname" = sText
and then trying to later retrieve that database field text with stored Carriage Return Line Feeds and have it break properly in a Response.Write statement like:
response.write objForm.ADORecordSet("fieldname"
This method does not seem to work. The output just wraps with no breaks. Do I need to do a parse routine or something to get my desired results? I don't think the CRLF's are being saved to the database field.