S
Steve in S.F.
I am creating a report that is a class roster listing information about the
parents of students in a school's classes.
The underlying table contains information about the students' parents. Each
student may have one or both parents and each parent may or may not have, for
example, a work phone, cell phone, or email address.
My problem is getting the report to list information only if it exists and
not leave a blank line when it doesn't. For example, if the father has a
work phone and the mother doesn't, the report should list the father's work
phone, but not leave a blank space for the mother's. Instead, the next line
should be filled with the next field's information.
I have a series of text boxes using the following formula (here's an example
for the work phone numbers):
TextBox: Text163 =IIf(Not IsNull([PHParent1WorkPhone]),"(" &
[PHParent1FirstName] & " - work) " & [PHParent1WorkPhone])
TextBox: Text164 =IIf(Not IsNull([PHParent2WorkPhone]),"(" &
[PHParent2FirstName] & " - work) " & [PHParent2WorkPhone])
I have set the "Can Shrink" property to "Yes" for both. Nonetheless, if
Parent1WorkPhone is blank in the table, I still get a blank space in the
report, followed by the Parent2WorkPhone.
What am I doing wrong here. Is there something wrong with the formula? Or
is there another method other than setting the the "Can Shrink" property. Or
some other solution?
Help!
Thanks,
Steve
parents of students in a school's classes.
The underlying table contains information about the students' parents. Each
student may have one or both parents and each parent may or may not have, for
example, a work phone, cell phone, or email address.
My problem is getting the report to list information only if it exists and
not leave a blank line when it doesn't. For example, if the father has a
work phone and the mother doesn't, the report should list the father's work
phone, but not leave a blank space for the mother's. Instead, the next line
should be filled with the next field's information.
I have a series of text boxes using the following formula (here's an example
for the work phone numbers):
TextBox: Text163 =IIf(Not IsNull([PHParent1WorkPhone]),"(" &
[PHParent1FirstName] & " - work) " & [PHParent1WorkPhone])
TextBox: Text164 =IIf(Not IsNull([PHParent2WorkPhone]),"(" &
[PHParent2FirstName] & " - work) " & [PHParent2WorkPhone])
I have set the "Can Shrink" property to "Yes" for both. Nonetheless, if
Parent1WorkPhone is blank in the table, I still get a blank space in the
report, followed by the Parent2WorkPhone.
What am I doing wrong here. Is there something wrong with the formula? Or
is there another method other than setting the the "Can Shrink" property. Or
some other solution?
Help!
Thanks,
Steve