Results 1 to 3 of 3

Thread: Dealing with Nulls

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2000
    Location
    Tennessee
    Posts
    279

    Question Dealing with Nulls

    I have the following formula in my crystal report done in .net:


    (If {?Electric Rate} = 'All' then {MyTable.RateCode}={MyTable.RateCode}
    else UpperCase({?Electric Rate}) = UpperCase({MyTable.RateCode}))


    When I run this report choosing 'All' it won't pull in records where MyTable.Ratecode is null. How can I alter this formula to bring in records where MyTable.RateCode is null. Thanks in advance.
    A cynic knows the price of everything but the value of nothing.

  2. #2
    Frenzied Member pnish's Avatar
    Join Date
    Aug 2002
    Location
    Tassie, Oz
    Posts
    1,918
    Open your report in Crystal, select File|Report Options. There is a checkbox labelled Convert Null Field Value to Default. If you check this box, it should handle Null fields properly.

    Hope that helps.
    Pete

    No trees were harmed in the making of this post, however a large number of electrons were greatly inconvenienced.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2000
    Location
    Tennessee
    Posts
    279
    Your suggestion solved my problem. Thanks.
    A cynic knows the price of everything but the value of nothing.

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