Right, I'm getting the hang of things now, but have been banging my head against anything hard on this one
The current form has a subform showing products, and a few details for each product.
I need to add new functionality to allow each product to have related data from a new table, linked by product code.
Adding a databound subform doesn't work, as it only shows one master (product) record at a time, rather than all of them as it currently does.
So, I've created a new subform and placed on the main form (so that now has 2 subforms, effectively master and detail, but not bound or nested)
I need to be able to pass the product code of the selected master record (which I can get with the on_enter event)and pass to the new subform's filter. I can get the subform from the forms collection, but can't find how to access the filter. (Tried casting but user defined not allowed error).
Or a better way of doing it!!
Thanks.
The current form has a subform showing products, and a few details for each product.
I need to add new functionality to allow each product to have related data from a new table, linked by product code.
Adding a databound subform doesn't work, as it only shows one master (product) record at a time, rather than all of them as it currently does.
So, I've created a new subform and placed on the main form (so that now has 2 subforms, effectively master and detail, but not bound or nested)
I need to be able to pass the product code of the selected master record (which I can get with the on_enter event)and pass to the new subform's filter. I can get the subform from the forms collection, but can't find how to access the filter. (Tried casting but user defined not allowed error).
Or a better way of doing it!!
Thanks.