Morning All
I am trying to run a bit of vba to colour the cells on a form depending on the content.
I have set the on paint event and put this behind it.
If Me.Completion_.Value = 0 Then
Me.Completion_.BackColor = vbRed
ElseIf Me.Completion_.Value = 100 Then
Me.Completion_.BackColor = vbGreen
Else: Me.Completion_.BackColor = vbYellow
End If
When it runs in a single form its fine but in a continuous form I get a run time debug. Do I have to set something up to cycle through each record?
And if so how would I do that?
I am trying to run a bit of vba to colour the cells on a form depending on the content.
I have set the on paint event and put this behind it.
If Me.Completion_.Value = 0 Then
Me.Completion_.BackColor = vbRed
ElseIf Me.Completion_.Value = 100 Then
Me.Completion_.BackColor = vbGreen
Else: Me.Completion_.BackColor = vbYellow
End If
When it runs in a single form its fine but in a continuous form I get a run time debug. Do I have to set something up to cycle through each record?
And if so how would I do that?