J
Jean-Paul De Winter
Hi,
I created a continuous form.
In the current event I wrote:
Private Sub Form_Current()
If Me!ASV_Werkhouding < 5 Then
Me.ASV_Werkhouding.ForeColor = 255
Else
Me.ASV_Werkhouding.ForeColor = 0
End If
If Me!ASV_Toetsen < 5 Then
Me.ASV_Toetsen.ForeColor = 255
Else
Me.ASV_Toetsen.ForeColor = 0
End If
End Sub
When the first record has values lower then 5 the value is written in red,
which is correct but all other values, even higher then 5 are printed in red
too.
This is only an example, the condition is much more complicated so
conditional formatting isn't an option here.
This can not be correct.
How to solve this
Thanks
JP
I created a continuous form.
In the current event I wrote:
Private Sub Form_Current()
If Me!ASV_Werkhouding < 5 Then
Me.ASV_Werkhouding.ForeColor = 255
Else
Me.ASV_Werkhouding.ForeColor = 0
End If
If Me!ASV_Toetsen < 5 Then
Me.ASV_Toetsen.ForeColor = 255
Else
Me.ASV_Toetsen.ForeColor = 0
End If
End Sub
When the first record has values lower then 5 the value is written in red,
which is correct but all other values, even higher then 5 are printed in red
too.
This is only an example, the condition is much more complicated so
conditional formatting isn't an option here.
This can not be correct.
How to solve this
Thanks
JP