RexesOperator
10-28-2007, 06:25 PM
I should mention I'm using A2K.
The problem I have now, is that I need to use the conditional formatting on 19 fields in the detail section. These fields are independent of each other, so a case statement is not applicable. And they have different test conditions. They are all numeric types.
When I try to add:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If textfield1 < 0 Then
textfield1.Visible = True
End If
If textfield2 > -99 Then
textfield2.BorderStyle.Visible = True
End If
End Sub
I get a run-time error '424'
Object required
The problem I have now, is that I need to use the conditional formatting on 19 fields in the detail section. These fields are independent of each other, so a case statement is not applicable. And they have different test conditions. They are all numeric types.
When I try to add:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If textfield1 < 0 Then
textfield1.Visible = True
End If
If textfield2 > -99 Then
textfield2.BorderStyle.Visible = True
End If
End Sub
I get a run-time error '424'
Object required