Welcome to Dream.In.Code
Getting Help is Easy!

Join 109,296 Programmers for FREE! Ask your question and get quick answers from experts. There are 1,229 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! 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
post 25 Jun, 2008 - 03: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

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 9/6/08 09:36AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month