troubleshooting Question

Filtering Continuous Subform From Combobox

Avatar of matthewlorin7
matthewlorin7 asked on
Microsoft AccessVisual Basic Classic
18 Comments1 Solution344 ViewsLast Modified:
I am trying to filter a continuous view subform from a combobox.  Should be easy enough, but I can't make it work.  This is the code I have:

Private Sub Combo25_AfterUpdate()
   DoCmd.ApplyFilter , "Me.txtStatus = '" & Me.Combo25 & "'"
End Sub

I get no movement on the subform.  I can apply similar language to the main form to filter by last name:

Private Sub Combo227_AfterUpdate()
   DoCmd.ApplyFilter , "LastName = '" & Me.Combo227 & "'"
End Sub

This works successfully.  Any ideas why the subform filter is not working?  The record sources are different; this shouldn't matter, right?  The "allow filters" is set to "on" on the subform.  Thanks for any help.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 18 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 18 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros