I have a series of command buttons, set up with the code below , to index a column ascending with a single click or descending with a double click.
Using command buttons allows me to change the colour of the active button and enhance the form's appearance.
Problem is the command buttons are only responding to the first click.
If I use a label instead of the button then single and double clicks do their jobs but with the down side of looking flat and the colour change becomes a bit more complicated.
Is there an option to turn off / on the double click event?
Using command buttons allows me to change the colour of the active button and enhance the form's appearance.
Problem is the command buttons are only responding to the first click.
If I use a label instead of the button then single and double clicks do their jobs but with the down side of looking flat and the colour change becomes a bit more complicated.
Is there an option to turn off / on the double click event?
Code:
Private Sub btnSpec_Raw_Click()
setIndex "Spec_raw"
End Sub
Private Sub btnSpec_Raw_DblClick(Cancel As Integer)
setIndex "Spec_raw Desc"
End Sub
Private Sub setIndex(str As String)
Me.OrderBy = str
End Sub