I have a form using several tab Controls
One of tab Control is used to display All data using a tabular subform.
In this Tab control I want to allow the user to sort by LastName, City, State...
I wrote this routine described below, But it is not working.
Please advise,
Thank you.
Dré
Private SortBy_Click()
Select Case Me!SortBy
Case 1
Me.OrderBy = ClientNo
Case 2
Me.OrderBy = LastName
Case 3
Me.OrderBy = City
Case 4
Me.OrderBy = State
End Select
Me.OrderByOn = True
Me.Requery
Me.Refresh
End Sub
One of tab Control is used to display All data using a tabular subform.
In this Tab control I want to allow the user to sort by LastName, City, State...
I wrote this routine described below, But it is not working.
Please advise,
Thank you.
Dré
Private SortBy_Click()
Select Case Me!SortBy
Case 1
Me.OrderBy = ClientNo
Case 2
Me.OrderBy = LastName
Case 3
Me.OrderBy = City
Case 4
Me.OrderBy = State
End Select
Me.OrderByOn = True
Me.Requery
Me.Refresh
End Sub