G
Guest
I have a combo box on my main form (Vendor) that when changed I want a sub-form on the same main form to refresh and show all the child records from my Vendor Contacts table. I can get this working if instead of a sub-form for the vendor contacts I use something such as a combobox, but I would also like my subform's query to be based off this master combobox on the main form.
It is working if I change the vendor combo box and then navigate away from the main record and back then the subform shows the correct child records. It also works if after I change the main Vendor combobox and then right-click on the subform and choose "Remove filter/sort". However I would like to programatically do something similar after the the .AfterUpdate event fires on the main form when the user changes the Vendor combo box.
I hope I was clear in my mission! So you know I have tried to put in the .AfterUpdate event code to refresh the subform but that doesn't seem to work (it does work with the linked combobox as stated above however)
Any ideas
Thanks
JC
It is working if I change the vendor combo box and then navigate away from the main record and back then the subform shows the correct child records. It also works if after I change the main Vendor combobox and then right-click on the subform and choose "Remove filter/sort". However I would like to programatically do something similar after the the .AfterUpdate event fires on the main form when the user changes the Vendor combo box.
I hope I was clear in my mission! So you know I have tried to put in the .AfterUpdate event code to refresh the subform but that doesn't seem to work (it does work with the linked combobox as stated above however)
Any ideas
Thanks
JC