Hi
I have a couple of minor problems in a report.
I have 2 fields for carers (PrimaryCarer and SecondCarer) I want an unbound field to say how many carers there are per patient (there is only ever one or two)
I have used this expression
I have also tried IIF(isnull([SecondCarerName]),1,2)
but neither of these will work.
The second problem is have have tried to get sub totals for each group and grand totals in the report footer.
A couple of my grand totals do not add up right (Total Patients and Total Carers). Im not sure if the sub totals are affecting the grand totals???
I have attached the file as this is a bit harder to explain.
I would be grateful for any help.
Thanks
Kev
I have a couple of minor problems in a report.
I have 2 fields for carers (PrimaryCarer and SecondCarer) I want an unbound field to say how many carers there are per patient (there is only ever one or two)
I have used this expression
Code:
=IIf(Len([SecondCarerName]=0),1,2)
I have also tried IIF(isnull([SecondCarerName]),1,2)
but neither of these will work.
The second problem is have have tried to get sub totals for each group and grand totals in the report footer.
A couple of my grand totals do not add up right (Total Patients and Total Carers). Im not sure if the sub totals are affecting the grand totals???
I have attached the file as this is a bit harder to explain.
I would be grateful for any help.
Thanks
Kev