wcboyd
Registered User.
- Local time
- Today, 01:30
- Joined
- Aug 30, 2004
- Messages
- 50
Hello All,
I have a continuous form that I want to sort/re-sort based on clicking a button in the header.
One button is for sorting the records by Project Name and the other is sorting by Project Tracking Code.
The form is based on an SQL Select statement.
Here is the click event code for the Project Name button:
Private Sub Command86_Click()
Dim ctlFrm As Form
Forms![Project - Maintain All Projects].OrderBy = ProjectNm
Set ctlFrm = Forms![Project - Maintain All Projects]
ctlFrm.Requery
End Sub
But this is not working. Any ideas?
Thanks.
I have a continuous form that I want to sort/re-sort based on clicking a button in the header.
One button is for sorting the records by Project Name and the other is sorting by Project Tracking Code.
The form is based on an SQL Select statement.
Here is the click event code for the Project Name button:
Private Sub Command86_Click()
Dim ctlFrm As Form
Forms![Project - Maintain All Projects].OrderBy = ProjectNm
Set ctlFrm = Forms![Project - Maintain All Projects]
ctlFrm.Requery
End Sub
But this is not working. Any ideas?
Thanks.