Crystal Reports - Date Field Font Color

Hello,
      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
LVL 1
daskas27Asked:
Who is Participating?
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

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

Open in new window

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

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.
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.