Jul 18, 2003 #1 deadhead7 Programmer Joined Apr 18, 2003 Messages 57 Location 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 Joined Jul 14, 2000 Messages 1,522 Location 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