Private Sub YourCommandButton_Click
Static intCount As Integer
Select Case intCount
Case Is = 0
Me.Detail.BackColor = RGB(255, 255, 255) ' red
Case Is = 1
Me.Detail.BackColor = RGB(255, 255, 0) ' yellow
Case Is = 2
Me.Detail.BackColor = RGB(0, 0, 0) ' black
End Select
intCount = intCount + 1
If intCount = 3 Then intCount = 0
End Sub