Applying a filter to a subform

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm trying to apply a filter to a subform. The filter is strCrit and the
form is frmContactSearchResults & the subform is subContactSearch.

The command that I currently have is:
Forms!frmContactSearchResults.subContactsSearch.Form.Filter = StCrit

However, this is not working. Any suggestions?

Thanks.
 
Ed said:
I'm trying to apply a filter to a subform. The filter is strCrit and
the form is frmContactSearchResults & the subform is subContactSearch.

The command that I currently have is:
Forms!frmContactSearchResults.subContactsSearch.Form.Filter = StCrit

However, this is not working. Any suggestions?

Thanks.

What does "..not working" mean? Do you get no response? An error? An incorrect
response?
 
It doesn't apply the filter at all.

Rick Brandt said:
What does "..not working" mean? Do you get no response? An error? An incorrect
response?
 
Doing my happy dance.

It works! It works! It works!

Thanks to both of you!
 
I'd like to do a happy dance too Ed!!! Hoping you can Pay It Forward :)

What you did sounds exactly like what I need...However I'm obviously more of
a novice. Exactly where did you put this filter criteria? Is this in visual
basic and how do I do so? Is strcrit a saved filter query?

I want my subform to filter by DeptID....such as [DEPTID]="FR". Have a
filter query set to do that and works on subform alone but not in main form.
Help?

Thanks in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top