Howdy all.
Pertaing to a customer requests DB I am designing.
"frmMain" form lets the user select a customer from a combo box. Then user either clicks command button: "Display All Requests" or command button: "Display Open Requests".
When user selects "Display All Requests" the "frmCustomerRequest" opens. "frmCustomerRequest" contains the customer details and "subfrmRequests" which is a subfrm. "subfrmRequests" is based on "tblRequests" table and shows all requests associated with the chosen customer.
If the user clicks "Display Open Requests" I want the same thing to happen except the subform will be based on "qryOpenRequests" query (instead of "tblRequests") which displays only the requests with status: "Open".
How do I do this in access without having to create two different forms that are practically identical except for the Record source of the subform (being based on "tblRequests" for the "Display All Requests" button and "qryOpenRequests" for the "Display Open Requests" button?
Pertaing to a customer requests DB I am designing.
"frmMain" form lets the user select a customer from a combo box. Then user either clicks command button: "Display All Requests" or command button: "Display Open Requests".
When user selects "Display All Requests" the "frmCustomerRequest" opens. "frmCustomerRequest" contains the customer details and "subfrmRequests" which is a subfrm. "subfrmRequests" is based on "tblRequests" table and shows all requests associated with the chosen customer.
If the user clicks "Display Open Requests" I want the same thing to happen except the subform will be based on "qryOpenRequests" query (instead of "tblRequests") which displays only the requests with status: "Open".
How do I do this in access without having to create two different forms that are practically identical except for the Record source of the subform (being based on "tblRequests" for the "Display All Requests" button and "qryOpenRequests" for the "Display Open Requests" button?