I am new in crystal reports so I don't know what to do
How can I make a group with this formula:
in Main Report
if DistinctCount ({PROD.GROUP_ID}, {PROD.ID_NO})=1 then
//group by
PROD.GROUP_ID
else if DistinctCount ({PROD.GROUP_ID}, {PROD.ID_NO})>1 and
({PROD.GROUP_ID}=previous({PROD.GROUP_ID}) or
{PROD.GROUP_ID}=next({PROD.GROUP_ID})) then
//group by
PROD.DOC_ID
else
//group by
PROD.GROUP_ID
Please help me with this I am new in crystal reports and I need to make this badly
I have this in my main report:
in the group header and it is group by {PROD.GROUP_ID}
Sub_Car
Sub_Airplane
Some of my sub reports are working when it is group by {PROD.GROUP_ID} and some sub reports works when this is group by {PROD.DOC_ID}