Solved

crystal report formula field to display results in red based on conditions

Posted on 2002-07-20
1
351 Views
Last Modified: 2013-12-25
I am using Crystal reports to display the results from the MS Access Data base and calling the rpt file from VB.

I am using the following Crystal Syntax in a formula field in the crystal report to display the Credit or debit balance.

stringVar balance := "" ;
numberVar x := {PartyBalance.CreditBalance};
numberVar y := -{PartyBalance.DebitBalance} ;
if y < x then
    balance := x & "  Cr"
else
    balance := y & "  De"

The code works fine as expected. I WANT TO DISPLAY THE BALANCE IN RED COLOR(that is if y < x in the above code)  IF IT IS A CREDIT BALANCE. How can I do this?
0
Comment
Question by:r_venkatadhri
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
gnrao earned 100 total points
ID: 7171964
In Crystal report designer, format the formula object. In format editor, font tab, you have a color cobmo. You can define the color using the formula there by clicking the icon.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question