Crystal Reports - Date Field Font Color

      I have a report that shows me inventory transactions. I have 2 dates that I am looking at. One being when the product went into inventory and the other is when I shipped the product. I have the date field for when it went into inventory use a red font if this date is less than the ship date. This works fine. However, I would like the date that it went into inventory to be a red font only if it went into inventory 6 months before the ship date. How would I do that? This would help me see the product that sits in inventory for 6 months before being shipped.

Thank you
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ido MilletProfessor of MIS at Penn State Erie and Owner, Millet SoftwareCommented:
Set the font color expression to something like:
IF DateDiff('m', {InDate}, {OutDate}) > 6 THEN crRed ELSE crBlack

Open in new window

IF {OutDate} - {InDate} > 183 THEN crRed ELSE crBlack

Open in new window

daskas27Author Commented:
Perfect, can I also make it bold using the same criteria?
Ido MilletProfessor of MIS at Penn State Erie and Owner, Millet SoftwareCommented:
Yes.  In the expression for Style return crBold or crRegular.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
daskas27Author Commented:
Awesome. Thank you.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.