Lanason
Registered User.
- Local time
- Today, 16:33
- Joined
- Sep 12, 2003
- Messages
- 258
I have some very simple code on a button on a form to sorts my data by company name. But as some of my data is for friends, I want to be able to add a line in that looks at the "Category" field and only includes those that are a "business". Can I do this.....?? So some sort of filter.
Private Sub Command43_Click()
On Error GoTo Err_Command43_Click
Me.OrderBy = "CompanyName"
Me.OrderByOn = True
Exit_Command43_Click:
Exit Sub
Err_Command43_Click:
MsgBox Err.Description
Resume Exit_Command43_Click
End Sub
Private Sub Command43_Click()
On Error GoTo Err_Command43_Click
Me.OrderBy = "CompanyName"
Me.OrderByOn = True
Exit_Command43_Click:
Exit Sub
Err_Command43_Click:
MsgBox Err.Description
Resume Exit_Command43_Click
End Sub