Rusty
Registered User.
- Local time
- Today, 17:28
- Joined
- Apr 15, 2004
- Messages
- 207
Hello,
I am trying to get a Command button to toggle the filter "on" and "off" on a form. I have done this by using:
DoCmd.RunCommand acCmdToggleFilter
How do I get this button to enable only if filter is on? I have tried several different things in the On Current event of the form, but to no avail, e.g.
Rusty

I am trying to get a Command button to toggle the filter "on" and "off" on a form. I have done this by using:
DoCmd.RunCommand acCmdToggleFilter
How do I get this button to enable only if filter is on? I have tried several different things in the On Current event of the form, but to no avail, e.g.
Can anyone help?Private Sub Form_Current()
If ????? Then
cmdFilter.Enabled = False
Else
cmdFilter.Enabled = True
End If
End Sub
Rusty
