Hello.
I am running the following sql query as the record source for my form:
SELECT tbl_CARGeneral.CARID, tbl_Employee.Employee, tbl_CARGeneral.[Date Initiated], tbl_CARGeneral.Status
FROM tbl_CARGeneral INNER JOIN tbl_Employee ON tbl_CARGeneral.[Initiated By] = tbl_Employee.EmployeeID;
I have a Menu form with a command button that when clicked, I want to only show the records when Status = Open (or Close). How do I change the above code to achieve this?
I suppose that I can just copy the form and change Status in the query to either Open or Close but I am hoping that I could have just one form and somehow just change the query by code.
Thanks.
I am running the following sql query as the record source for my form:
SELECT tbl_CARGeneral.CARID, tbl_Employee.Employee, tbl_CARGeneral.[Date Initiated], tbl_CARGeneral.Status
FROM tbl_CARGeneral INNER JOIN tbl_Employee ON tbl_CARGeneral.[Initiated By] = tbl_Employee.EmployeeID;
I have a Menu form with a command button that when clicked, I want to only show the records when Status = Open (or Close). How do I change the above code to achieve this?
I suppose that I can just copy the form and change Status in the query to either Open or Close but I am hoping that I could have just one form and somehow just change the query by code.
Thanks.