Jul 18, 2003 #1 deadhead7 Programmer Apr 18, 2003 57 US Is there a way to show a form is sorted? Whether it be having a label visible when sorted by a specific column? How can I do that?
Is there a way to show a form is sorted? Whether it be having a label visible when sorted by a specific column? How can I do that?
Jul 18, 2003 #2 PaulF Technical User Jul 14, 2000 1,522 US try testing the Recordsource property. If InStr(Me.RecordSource, "Order By" > 0 Then lblSort.Caption = "Sort Sequence: " & Mid(Me.RecordSource, InStr(Me.RecordSource, "Order By" + 9) Else lblSort.Caption = "No Sort Sequence Selected" End If Me.Refresh PaulF Upvote 0 Downvote
try testing the Recordsource property. If InStr(Me.RecordSource, "Order By" > 0 Then lblSort.Caption = "Sort Sequence: " & Mid(Me.RecordSource, InStr(Me.RecordSource, "Order By" + 9) Else lblSort.Caption = "No Sort Sequence Selected" End If Me.Refresh PaulF