I have set up a form with two combo boxes -
the first is a "category" drop down
the second combo box is on a filtered query which only selects the criteria of a particular category.
Ie first combo select "fruit" as the category, second then only lists apples, pears etc (using [Forms]![Order Details]![Category] in the criteria)
After alot of trial and error it now works fine.....on this form....but
If I drop the form as a subform into another form it will not work - when the category is selected in the first combo an error message "Run time error 2488 - You can't use the Apply Filter action on this window" and debugs to VB on the after update on the first combo where I have DoCmd.Requery "secondcombo"entered.
By removing this it does not work as it only picks up the category first entered on the first entry (hence having to requery) but does not come up with an error- it is in datasheet view so many lines are entered in the subform.
I have seen various other posts on this (filtered combos), but I just seem to be so close this way its driving me mad
Many thanks
the first is a "category" drop down
the second combo box is on a filtered query which only selects the criteria of a particular category.
Ie first combo select "fruit" as the category, second then only lists apples, pears etc (using [Forms]![Order Details]![Category] in the criteria)
After alot of trial and error it now works fine.....on this form....but
If I drop the form as a subform into another form it will not work - when the category is selected in the first combo an error message "Run time error 2488 - You can't use the Apply Filter action on this window" and debugs to VB on the after update on the first combo where I have DoCmd.Requery "secondcombo"entered.
By removing this it does not work as it only picks up the category first entered on the first entry (hence having to requery) but does not come up with an error- it is in datasheet view so many lines are entered in the subform.
I have seen various other posts on this (filtered combos), but I just seem to be so close this way its driving me mad
Many thanks