Welcome to Dream.In.Code
Become an Expert!

Join 150,120 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,992 people online right now. Registration is fast and FREE... Join Now!




Crystal Report Formula Field Multi Line

 
Reply to this topicStart new topic

Crystal Report Formula Field Multi Line

ChloeThompson
25 Jun, 2008 - 02:01 AM
Post #1

New D.I.C Head
*

Joined: 25 Jun, 2008
Posts: 1


My Contributions
This code populates the string
CODE

                    If strRet <> "" Then strRet = strRet & Chr(13)
                    strRet = strRet & dr("mrg_group") & ": " & dr("CountPerc")

This code puts the string into a crystal report formula field
CODE

        ffdef = crpt1.DataDefinition.FormulaFields.Item("MRGScore")
        ffdef.Text = "'" & strMRGScore & "'"

There is no apostrophe single or double quote within the string, but I keep on getting messages about missing end quotes in the crystal report.

String Value:
'Cleaning: 100.00
Cleaning / Nursing: ---
Curtain Ladies: ---
Estates: 84.61
Nursing: ---
Patientline: ---'

Error Code: -2147217383

Error Message:
The matching ' for this string is missing.
Error in formula <MRGScore>.
''Cleaning: 100.00
'
The matching ' for this string is missing.

Does anyone know how to feed a string containing a carriage return/line feed/? into a crystal report formula field?
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/9/09 01:21AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month