Filling SubForm from ComboBox
Hi All,
Every day is about learning new thing in Access for me,
Yesterday i manage to fill one combobox from other now what i am trying to do is
Combobox 1 --> Fill with Supplier ID
Combobox 2 --> Fill with Product ID of relevant Supplier
Now on the bases of these two comboboxes I want to fill sub form which will shows all the result required
So far what i did i put sub form on main form and link with query
which is
SELECT Products.PID, Products.SID, Products.SupplierNum
FROM Products INNER JOIN ProductTypes ON products.ProductType=ProductTypes.ProductType
WHERE (((ProductTypes.SID)=Forms!ExportToExcel!cmbSuppli erList)) And (((ProductTypes.ProductType)=Forms!ExportToExcel!c mbProductTypes));
which is not populating subform and i tried this
SELECT Products.PID, Products.SID, Products.SupplierNum
FROM Products INNER JOIN ProductTypes ON products.ProductType=ProductTypes.ProductType
WHERE (((ProductTypes.SID)='AB')) And (((ProductTypes.ProductType)='18'));
which is working
Next Bit i have to do to finish this to export all sub form records in Excel sheet any magician programmer
I hope this is kind of question which will help every one joining this community
Regards
Ayaz
|