How to Identify the Value of a Database Field in Crystal Reports that is an Integer as Even or Odd Number?

Hello Experts,

Is there a function or formula in Crystal Reports that can identify the value of a database field that is an integer, as an even or an odd number ?
My goal is to put all records with an odd 'case number' on the left side of my report and all the records with an even 'case number' on the right.  I am using two subreports to display the case number data in a group section.

Thank you.
Who is Participating?
mlmccConnect With a Mentor Commented:
Try this


{CaseNumberField} Mod 2 = 1


{CaseNumberField} Mod 2 = 0

MOD gives the remainder when divided by in this case 2


ChoppAuthor Commented:
Thank you very much!  That works perfectly for my report.
Have a great evening.
All Courses

From novice to tech pro — start learning today.