I have a tab control. Each tab has a form on the control. Each form has a filter property and a search button. My intention is to have the user hit the search button, enter the 2 field values (always 2) and have the form display that record.
For example, one form (based on a table) has the following filter property: (((tblTimeCard.EmployeeNum)=[Enter Employee Number]) AND ((tblTimeCard.DateWorked)=[Enter Date: mm/dd/yy]))
My search button click event is set to:
DoCmd.RunCommand (acCmdRemoveFilterSort)
DoCmd.RunCommand (acCmdApplyFilterSort)
However, whenever I press the search button, it seems to run through all the filters on every tab. How can I make it so it only runs the filter in the specific forms filter property?
For example, one form (based on a table) has the following filter property: (((tblTimeCard.EmployeeNum)=[Enter Employee Number]) AND ((tblTimeCard.DateWorked)=[Enter Date: mm/dd/yy]))
My search button click event is set to:
DoCmd.RunCommand (acCmdRemoveFilterSort)
DoCmd.RunCommand (acCmdApplyFilterSort)
However, whenever I press the search button, it seems to run through all the filters on every tab. How can I make it so it only runs the filter in the specific forms filter property?