MS Access pass through dependent on form value
How do I assign a pass-through query to Row Source that is dependent on another value in the form? Essentially I want to do this: SELECT x.companyid, x.companyname, x.productid FROM x WHERE (((x.CompanyID) = [Forms]![Reporting]![CompanyID_Control])) ORDER BY x.productid; But of course pass-through queries do not support reference to any form controls. I have read here that there is a method via VBA, however I do not know how to use VBA in conjunction with the Row Source of a control. As Remou stated in his answer, linked tables will make this easier. However, if you have a pass-through query