Hello.
I have a command entry form (frmOrders) that includes a subform (frmOrdersSub) for the command lines. In the main form (frmOrders), a list box (lstSupId) selects the supplier. Then, in frmOrderSub, in the datagrid (grdOrdersSub), a list box (lstProId) selects the product. In the T_PRODUCTS table, a column (SUP_ID) indicates the supplier of each product.
Once the supplier is selected, I would like the sub-form to display only the supplier’s products. In MS Access, it’s easy :
SELECT
PRO_ID,
SUP_ID,
PRO_LIB,
PRO_PRICE
FROM T_PRODUCTS
WHERE (((T_PRODUCTS.SUP_ID)=forms!frmOrders!SUP_ID));
But in LO Base I think it takes a macro to get there.
Thank you.
mdlOrders.odb (14,1 Ko)