I have a directory report and each family could have upto 4 children. I would like not to see pipe symbol(s) and the "dash" in between if there is not 2nd, 3rd or 4th child.
Currently this is what I get
Jake - 1| - | - | -
so Jake is in first grade and he has no siblings
Danielle - 4 | Matt - 3 | Andy - K | -
and the next one has 3 children with a trailing dash since there is no 4th child.
I would like the trailing pipe symbol(s) and the dash(s) to disappear when there are no more children.
Eveyone has at least one child or they would not be in the directory at all.
This is my code but it does not work for the fourth child as a test. I still get a dash,
What am I missing?
TIA
DougP
Currently this is what I get
Jake - 1| - | - | -
so Jake is in first grade and he has no siblings
Danielle - 4 | Matt - 3 | Andy - K | -
and the next one has 3 children with a trailing dash since there is no 4th child.
I would like the trailing pipe symbol(s) and the dash(s) to disappear when there are no more children.
Eveyone has at least one child or they would not be in the directory at all.
This is my code but it does not work for the fourth child as a test. I still get a dash,
Code:
=IIf([child4]=Null,"",[child4] & "-" & [child4grade])
What am I missing?
TIA
DougP