Hi, How can i filter a subform created from a query with an unbound combo box? Thanks
S spiz via AccessMonster.com Feb 7, 2008 #1 Hi, How can i filter a subform created from a query with an unbound combo box? Thanks
K Klatuu Feb 7, 2008 #2 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
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 Feb 7, 2008 #3 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 Click to expand... Click to expand...
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 Click to expand... Click to expand...