Hiiii all dears
I have a Main form (unbound) , contains a combobox "Mycmb" its sourceraw:
and subfrm its recordsource :
how to filter ( in "OrderDate" field) that subform by choosing a month in "Mycmb", ?
( not by criteria in recordsource of subfrm ) .
I have a Main form (unbound) , contains a combobox "Mycmb" its sourceraw:
Code:
SELECT Month(Format([OrderDate],'mm yyyy')) AS MyMnthNo, Format([OrderDate],"mmmm yyyy") AS MyMnth
FROM tblOrders
GROUP BY Month(Format([OrderDate],'mm yyyy')), Format([OrderDate],"mmmm yyyy");
Code:
SELECT tblOrders.OrderID, tblOrders.OrderDate, tblOrders.OrderShift
FROM tblOrders;
how to filter ( in "OrderDate" field) that subform by choosing a month in "Mycmb", ?
( not by criteria in recordsource of subfrm ) .