C
Crispywafers
I have a report where I didn't want certain textboxes to show if they
were equal to zero.
However, everything works fine when scrolling through the reports...
and then all of a sudden... on the same couple reports I will get the
error:
"Runtime error: Method 'Nz' of object '_Application' failed".
Can someone tell me what this means? I dont' even know where to start.
The code is:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
txtExtendedDayT.Visible = Nz(Me!txtExtendedDayT, 0) <> 0
txtEarlyBirdT.Visible = Nz(Me!txtEarlyBirdT, 0) <> 0
txtDiscountT.Visible = Nz(Me!txtDiscountT, 0) <> 0
If txtDiscountT.Visible = True Then
txtLeft.Visible = True
txtRight.Visible = True
Else
txtLeft.Visible = False
txtRight.Visible = False
End If
End Sub
were equal to zero.
However, everything works fine when scrolling through the reports...
and then all of a sudden... on the same couple reports I will get the
error:
"Runtime error: Method 'Nz' of object '_Application' failed".
Can someone tell me what this means? I dont' even know where to start.
The code is:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
txtExtendedDayT.Visible = Nz(Me!txtExtendedDayT, 0) <> 0
txtEarlyBirdT.Visible = Nz(Me!txtEarlyBirdT, 0) <> 0
txtDiscountT.Visible = Nz(Me!txtDiscountT, 0) <> 0
If txtDiscountT.Visible = True Then
txtLeft.Visible = True
txtRight.Visible = True
Else
txtLeft.Visible = False
txtRight.Visible = False
End If
End Sub