R
roccogrand
In my proposal database I have six Calendar objects (positioned 3 across and
2 down) in one my reports. Three of the calendars should not appear in the
reports if their data sources are null.
I have inserted the code below to display white boxes on top of the
calendars when the data sources are empty. Yesterday the module crashed
(probably a memory issue) and so I need error checking to handle this
situation.
What kind of error checking do I need?
Private Sub Report_Load()
If IsNull(Me.ProposalShip) = False Then
Box87.Visible = False
Else
Box87.Visible = True
End If
If IsNull(Me.ProposalRed) = False Then
Box88.Visible = False
Else
Box88.Visible = True
End If
If IsNull(Me.ProposalGold) = False Then
Box95.Visible = False
Else
Box95.Visible = True
End If
End Sub
Thanks,
David
2 down) in one my reports. Three of the calendars should not appear in the
reports if their data sources are null.
I have inserted the code below to display white boxes on top of the
calendars when the data sources are empty. Yesterday the module crashed
(probably a memory issue) and so I need error checking to handle this
situation.
What kind of error checking do I need?
Private Sub Report_Load()
If IsNull(Me.ProposalShip) = False Then
Box87.Visible = False
Else
Box87.Visible = True
End If
If IsNull(Me.ProposalRed) = False Then
Box88.Visible = False
Else
Box88.Visible = True
End If
If IsNull(Me.ProposalGold) = False Then
Box95.Visible = False
Else
Box95.Visible = True
End If
End Sub
Thanks,
David