Hi,
I am trying to do something with Crystal Reports 9, but I am not sure if it is possible to do it...
how_long is the field I want to add
...depending of how many consecutive True value there is in the active field, I want to know for how many days it is True
when it is False...I put no value in the how_long record
time active how_long
2006-05-23 False
2006-05-24 True ~4days
2006-05-25 True ~3days
2006-05-26 True ~2days
2006-05-27 True ~1day
2006-05-28 False
2006-05-29 False
2006-05-31 False
I thought I could use the function Next(), but I need to go further than the next record
Any way to do this?
Would it be with a subreport? I don't know
Thanks for your help
Michael
I am trying to do something with Crystal Reports 9, but I am not sure if it is possible to do it...
how_long is the field I want to add
...depending of how many consecutive True value there is in the active field, I want to know for how many days it is True
when it is False...I put no value in the how_long record
time active how_long
2006-05-23 False
2006-05-24 True ~4days
2006-05-25 True ~3days
2006-05-26 True ~2days
2006-05-27 True ~1day
2006-05-28 False
2006-05-29 False
2006-05-31 False
I thought I could use the function Next(), but I need to go further than the next record
Any way to do this?
Would it be with a subreport? I don't know
Thanks for your help
Michael