filter subform created from query

  • Thread starter spiz via AccessMonster.com
  • Start date
S

spiz via AccessMonster.com

Hi,
How can i filter a subform created from a query with an unbound combo box?
Thanks
 
K

Klatuu

Put a WHERE clause in your subform's record source query to filter on the
value of the Combo Box:

WHERE [SomeField] = Forms!MyFormName!MyComboName

Then in the After Updat event of the Combo:

Me.MySubformControl.Form.Requery
 
S

spiz via AccessMonster.com

Thank you, however, i keep getting bugs from the code :(
i could just be doing this wrong
Put a WHERE clause in your subform's record source query to filter on the
value of the Combo Box:

WHERE [SomeField] = Forms!MyFormName!MyComboName

Then in the After Updat event of the Combo:

Me.MySubformControl.Form.Requery
Hi,
How can i filter a subform created from a query with an unbound combo box?
Thanks
 

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

Top