T
terryh70
I have the following in the controll source of an unbound text box on a form,
which enters Rank then two spaces, then last name seperated by a comma and a
space then the next 4 entries are the same but on different lines. The
unbound box and the form detail section are set to can grow and can shrink.
The problem is that if the fields are empty then the comma still shows up on
its own line and the report does not shrink.
Also how can I get each new entry be seperated by a line that is visible on
the report. If I draw the lines on the report, then they show up but the
report no longer grows and shrinks and always shows the lines even if there
is not data in it.
=[SUBJECTRANK1] & " " & [SUBJECTNAME1] & ", " & [SUBJECTFIRSTNAME1] &
+Chr(13)+Chr(10) & [SUBJECTRANK2] & " " & [SUBJECTNAME2] & ", " &
[SUBJECTFIRSTNAME2] & +Chr(13)+Chr(10) & [SUBJECTRANK3] & " " &
[SUBJECTNAME3] & ", " & [SUBJECTFIRSTNAME3] & +Chr(13)+Chr(10) &
[SUBJECTRANK4] & " " & [SUBJECTNAME4] & ", " & [SUBJECTFIRSTNAME4] &
+Chr(13)+Chr(10) & [SUBJECTRANK5] & " " & [SUBJECTNAME5] & ", " &
[SUBJECTFIRSTNAME5]
which enters Rank then two spaces, then last name seperated by a comma and a
space then the next 4 entries are the same but on different lines. The
unbound box and the form detail section are set to can grow and can shrink.
The problem is that if the fields are empty then the comma still shows up on
its own line and the report does not shrink.
Also how can I get each new entry be seperated by a line that is visible on
the report. If I draw the lines on the report, then they show up but the
report no longer grows and shrinks and always shows the lines even if there
is not data in it.
=[SUBJECTRANK1] & " " & [SUBJECTNAME1] & ", " & [SUBJECTFIRSTNAME1] &
+Chr(13)+Chr(10) & [SUBJECTRANK2] & " " & [SUBJECTNAME2] & ", " &
[SUBJECTFIRSTNAME2] & +Chr(13)+Chr(10) & [SUBJECTRANK3] & " " &
[SUBJECTNAME3] & ", " & [SUBJECTFIRSTNAME3] & +Chr(13)+Chr(10) &
[SUBJECTRANK4] & " " & [SUBJECTNAME4] & ", " & [SUBJECTFIRSTNAME4] &
+Chr(13)+Chr(10) & [SUBJECTRANK5] & " " & [SUBJECTNAME5] & ", " &
[SUBJECTFIRSTNAME5]