Frage

I created an Access 2013 report using a linked table from Sharepoint. In Sharepoint, the field is defined as "Multiple lines of text, Plain Text", in Access it comes down as "Long Text".

The field contents contains line breaks. In Access the field is "Can Grow=Yes" and "Text Format=Plain Text".

The problem is the report displays the field without the line breaks. Any ideas?

In Access I verified there are chr(10) characters but no chr(13) characters in the field. I tried replacing the chr(10) with chr(10) & chr(13) but that didn't work. It just seems to be ignoring the chr(10) character in the printed output.

War es hilfreich?

Lösung

I figured out a work around which is to use the 'Rich Text' report field property on the 'Plain Text' field:

  1. Replace chr(10) with <br/> in the field on the report i.e.

    =Replace([fieldname],Chr(10),"<br/>")
    
  2. Change the text box 'Text Format' property from 'Plain Text' to 'Rich Text'

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top