Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Turn off filter with command button 1

Status
Not open for further replies.

netrusher

Technical User
Feb 13, 2005
952
US
Can anyone tell me if it is possible to turn off a filter on a form using a command button?
If so could you post the code? I would appreciate any help!
 
How are ya netrusher . . .

Have you tried:
Code:
[blue]   Me.FilterOn = False[/blue]

Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997
Also faq181-2886
 
Great AceMan! thanks a lot!

How about Filter by Selection with a Command Button?
 
Thanks Bubba,

What I am trying to accomplish is as follows:

Whatever field the person is in I want them to be able
to hit a command button and filter by selection instead
of right clicking and selecting filter by selection. Hope
that can be done and am anxiously awaiting solution.

I appreciate all help!
 
Thanks everyone:

I found the following code fron another posting.


Code:
Screen.PreviousControl.SetFocus
     DoCmd.RunCommand acCmdFilterBySelection
 
netrusher . . .

You could automate [blue]FilterBySelection[/blue] by using the fields [blue]On Dbl Click[/blue] event instead of the button! . . .

Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997
Also faq181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top