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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form will not display filter Query to Load

Status
Not open for further replies.

chris7777

Technical User
Apr 11, 2005
2
US
I have a form with 2 subforms. I regularly use the same filter on the form and would like to save it as a query to load when needed. I am able to save the query but when I try to Load from Query in advanced filter the saved query does not display as an applicable filter. Therefore I can't load it. I have tried to load the query on a version of the form that did not include the subforms and was successful. Does anyone know how I can get the query to load as a filter in the form? Thanks in advance for any ideas or suggestions!

Chris
 
Hi
Would it be possible for you to use a command button? For example:
Code:
Private Sub cmdFilter_Click()
Me.Filter = "Code=123"
Me.FilterOn = True
Me.MySub_subform.Form.Filter = "Code='AAA'"
Me.MySub_subform.Form.FilterOn = True
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top