C
channell
I have the following code for my label to sort:
Private Sub txtLabel124_Click()
If Me.OrderBy = "[LastNameFirstName]" Then
Me.OrderBy = "[LastNameFirstName] DESC"
Else
Me.OrderBy = "[LastNameFirstName]"
End If
End Sub
The code works just fine, but here is my problem:
The Form which contains this code is based on a Query which requires certain
criteria (Parameter Query). When I click the label to sort the information
present, the Parameter Box reappears asking me to put in the date. When I
do, it sorts it like it should. I need to know if there is a way to bypass
re-entering the same data (Date) in the parameter box. Thank you very much
in advance!
Private Sub txtLabel124_Click()
If Me.OrderBy = "[LastNameFirstName]" Then
Me.OrderBy = "[LastNameFirstName] DESC"
Else
Me.OrderBy = "[LastNameFirstName]"
End If
End Sub
The code works just fine, but here is my problem:
The Form which contains this code is based on a Query which requires certain
criteria (Parameter Query). When I click the label to sort the information
present, the Parameter Box reappears asking me to put in the date. When I
do, it sorts it like it should. I need to know if there is a way to bypass
re-entering the same data (Date) in the parameter box. Thank you very much
in advance!