Hello Access Masters,
I'm new in AccessWorld (not quietly new in access, but on this form )
I have one little problem
Below is picture of my group with 3 options buttons. Those group I have on one access Form. I need code which can paint all group based on selected option.
For example Open = Red, InWork = Yellow, Close = Green
I tried several options, but I'm not happy with solution, Currently I have code
But, I want to change color immediately after I click on next field on form, not only when I leave form. And when I listing records true form I want to see those colors. Currently those three colors not shown until I click into records on form
Thanks
I'm new in AccessWorld (not quietly new in access, but on this form )
I have one little problem
Below is picture of my group with 3 options buttons. Those group I have on one access Form. I need code which can paint all group based on selected option.
For example Open = Red, InWork = Yellow, Close = Green
I tried several options, but I'm not happy with solution, Currently I have code
Code:
Private Sub frmOrderStatus_Exit(Cancel As Integer)
With Me.frmOrderStatus
.BackStyle = 1
.BackColor = vbWhite
If .Value = 1 Then
.BackColor = vbRed
ElseIf .Value = 2 Then
.BackColor = vbYellow
ElseIf .Value = 3 Then
.BackColor = vbGreen
End If
End With
End Sub
But, I want to change color immediately after I click on next field on form, not only when I leave form. And when I listing records true form I want to see those colors. Currently those three colors not shown until I click into records on form
Thanks