irunergoiam
Registered User.
- Local time
- Today, 14:36
- Joined
- May 30, 2009
- Messages
- 76
I'm trying to write a report (based on a single query - all the data fields are there) that will serve as an Employment Offer Letter. Many of the fields all offer letters will have in common. However, there are some fields that do not apply to all newly hired employees. For example, not all recipients of the offer letter will receive a [SignOn] bonus, [Relocation] assistance, and/or additional hours of [PTO] (paid time off) upon hire.
For these fields, I am concatenating text and inserting the data field in the text field.
What I'm after is a way to supress (make invisible) the entire concatenated text field where one or more of the data fields being concatenated with the text is null. I would then like it to fill in the gap created by the hidden field with the next concatenated text field without null value data fields.
A friend suggested:
If Me.PTO Is NullThen
Me.PTO.Visible = False
Else
Me.PTO.Visible = True
If Me.Relocation Is NullThen
Me.Relocation.Visible = False
Else
Me.Relocation.Visible = True
End If
As an On Format Event in the Details section (where all the fields are located) of the report.
Thanks in advance for any insights. This is by far the most complex thing I've tried doing in reports.
For these fields, I am concatenating text and inserting the data field in the text field.
What I'm after is a way to supress (make invisible) the entire concatenated text field where one or more of the data fields being concatenated with the text is null. I would then like it to fill in the gap created by the hidden field with the next concatenated text field without null value data fields.
A friend suggested:
If Me.PTO Is NullThen
Me.PTO.Visible = False
Else
Me.PTO.Visible = True
If Me.Relocation Is NullThen
Me.Relocation.Visible = False
Else
Me.Relocation.Visible = True
End If
As an On Format Event in the Details section (where all the fields are located) of the report.
Thanks in advance for any insights. This is by far the most complex thing I've tried doing in reports.