This is most likely a simple question for those that have used Access for a while but here goes.
I what to make a button appear depressed when clicked and normal when slicked again.
I have a button now that filters records by a field on that form and just what ensure they now they clicked the button.
Here is the code I have now which works and makes the button text turn red when depressed and black when not clicked.
FilterOn = False
If FCounter = 0 Then
Filter = "SupervisorID = " & Me!SupervisorID.Value
Me.cmdFilterAgentData.ForeColor = 255
FilterOn = True
FCounter = 1
Exit Sub
End If
FCounter = 0
Me.cmdFilterAgentData.ForeColor = 0
I what to make a button appear depressed when clicked and normal when slicked again.
I have a button now that filters records by a field on that form and just what ensure they now they clicked the button.
Here is the code I have now which works and makes the button text turn red when depressed and black when not clicked.
FilterOn = False
If FCounter = 0 Then
Filter = "SupervisorID = " & Me!SupervisorID.Value
Me.cmdFilterAgentData.ForeColor = 255
FilterOn = True
FCounter = 1
Exit Sub
End If
FCounter = 0
Me.cmdFilterAgentData.ForeColor = 0