On one of my forms i have two subforms. The second subform is a subform of the first subform.
The purpose of the parentform is to display suppliers of products. A supplier can be choosen via a combobox on this form.
To make the link between the parentform and the first subform i use the control SupplID. The purpose of the first subform is displaying the OrderId and OrderDate of an order of products with the current supplier as destination.
The second subform is a subform of the first subform. Is serves as orderdetail ,and as link between this subform and the first subform serves the control OrderID.
On the second subform i have a combobox that makes it possible to choose the product that has to be ordered. Now i want to arrange the rowsource of this combobox in such a way that the list of products the combobox will display is in accordance with the current supplier displayed in the parent form. Therefore have a parameter in the query meant as rowsource of the combobox that reference the field SupplID in the parentform . e. g " = Forms!frmSupplier!SupplId".
Runing this query in the query designwindow, results in a demand for a SupplierlD, and after that it displays only the products this supplier delivers, what is just what i want. But when i set the rowsource for the combobox in the second subform equal this query and open the forms that doesn't work; I get a demand entering a value for this parameter, but even an correct input doesn't gives a good result. It seems that the query doesnt find the value SupplID in the forms mentioned in the parameter. What's wrong?
The purpose of the parentform is to display suppliers of products. A supplier can be choosen via a combobox on this form.
To make the link between the parentform and the first subform i use the control SupplID. The purpose of the first subform is displaying the OrderId and OrderDate of an order of products with the current supplier as destination.
The second subform is a subform of the first subform. Is serves as orderdetail ,and as link between this subform and the first subform serves the control OrderID.
On the second subform i have a combobox that makes it possible to choose the product that has to be ordered. Now i want to arrange the rowsource of this combobox in such a way that the list of products the combobox will display is in accordance with the current supplier displayed in the parent form. Therefore have a parameter in the query meant as rowsource of the combobox that reference the field SupplID in the parentform . e. g " = Forms!frmSupplier!SupplId".
Runing this query in the query designwindow, results in a demand for a SupplierlD, and after that it displays only the products this supplier delivers, what is just what i want. But when i set the rowsource for the combobox in the second subform equal this query and open the forms that doesn't work; I get a demand entering a value for this parameter, but even an correct input doesn't gives a good result. It seems that the query doesnt find the value SupplID in the forms mentioned in the parameter. What's wrong?