G
Guest
I have 5 command buttons (cmd_Cust, cmd_Agent ...etc) each with code like
this:
Private Sub cmd_Cust_Click()
cmd_Cust.ForeColor = RGB(255, 0, 0)
Call SortCriteria("Cust")
End Sub
Each button calls Sub SortCriteria. Here is my question. The code for Sub
SortCriteria needs to refer to the button that called it. Should I pass the
name of the command button, or is there a better way to do this. Either way,
I'm just not sure of the proper syntax.
thanks in advance--
cinnie
this:
Private Sub cmd_Cust_Click()
cmd_Cust.ForeColor = RGB(255, 0, 0)
Call SortCriteria("Cust")
End Sub
Each button calls Sub SortCriteria. Here is my question. The code for Sub
SortCriteria needs to refer to the button that called it. Should I pass the
name of the command button, or is there a better way to do this. Either way,
I'm just not sure of the proper syntax.
thanks in advance--
cinnie