Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Show How A Form IS sorted

Status
Not open for further replies.

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?
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top