ChrisO
Registered User.
- Local time
- Today, 19:07
- Joined
- Apr 30, 2003
- Messages
- 3,202
No problems and I'll give you a start: -
But it's still up to you to fashion your code the way you want it and in the appropriate event.
Chris.
Code:
Private Sub cmdFilterBySelection_Click()
[color=green]' Set the filter.[/color]
Me.Filter = "ContactTitle = 'Owner'"
[color=green]' Apply the filter.[/color]
Me.FilterOn = True
[color=green]' If no records, remove the filter.[/color]
Me.FilterOn = (Me.RecordsetClone.RecordCount > 0)
End Sub
Chris.