Hi,
I've got part way with this but need some help to finish it.
I've got a contuinuous form and want the users to be able to sort by the column headings. Double-click the first time should sort ascending, the next double-click should sort descending.
So far I've got
I'd rather not use two separate command buttons, so presumably I need an IF statement that says something like
IF me.orderby=asc then
me.orderby=desc
end if
But I can't work out the syntax! Can anyone help?
I've got part way with this but need some help to finish it.
I've got a contuinuous form and want the users to be able to sort by the column headings. Double-click the first time should sort ascending, the next double-click should sort descending.
So far I've got
Code:
Private Sub Recruit_Tracker_Study_Name_Label_DblClick(Cancel As Integer)
Me.OrderBy = "[Recruit Tracker Study Name] ASC"
End Sub
I'd rather not use two separate command buttons, so presumably I need an IF statement that says something like
IF me.orderby=asc then
me.orderby=desc
end if
But I can't work out the syntax! Can anyone help?