Results 1 to 3 of 3

Thread: Crystal Reports Formula problem

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    5,034

    Crystal Reports Formula problem

    I am trying to use crystal reports 8.5. I have created a formula that is not working. It's very simple yet, I still can't get it to work. Below is what the formula looks like:


    VB Code:
    1. If IsNull({tblClientAddr.addAddr2}) Then
    2.    {tblClientAddr.addAddr1}
    3. Else
    4.    Trim({tblClientAddr.addAddr1}) & ", " & Trim({tblClientAddr.addAddr2})

    I keep getting the error message:

    "The result of the selection formula must be a boolean"

    What am I doing wrong?

    thanks,
    Blake

  2. #2
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: Crystal Reports Formula problem

    You might want to try the Reporting Forum http://www.vbforums.com/forumdisplay.php?f=33

  3. #3
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: Crystal Reports Formula problem

    The Record Selection Formula is used to further discard unwanted records returned from the datasource. Create a new formula, add your code and then display the formula result in your report.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width