I have four tables that keep track of payroll information for each respective quarter (1st through 4th). What I want to do, is be able to let the user select which quarters to consolidate.
For example, the user wants to see the payroll information for the 4th through 2nd quarter. I want them to be able to select the quarters in a form, and then click a button and a table is made that shows the 4th through 2nd quarter payroll information.
What I have right now is a form, with 4 checkboxes (each indicating a quarter) and a command button (named btnConsolidateQuarters). I've figured out how to get the button to open and run a query but I don't know how to get the query to select the correct quarters.
My question is, is it possible for the user to choose which quarters to consolidate (via checkboxes) and the query can be adapted to the user's selections, or do I have to manually write queries for every possible scenario? Thanks.
For example, the user wants to see the payroll information for the 4th through 2nd quarter. I want them to be able to select the quarters in a form, and then click a button and a table is made that shows the 4th through 2nd quarter payroll information.
What I have right now is a form, with 4 checkboxes (each indicating a quarter) and a command button (named btnConsolidateQuarters). I've figured out how to get the button to open and run a query but I don't know how to get the query to select the correct quarters.
My question is, is it possible for the user to choose which quarters to consolidate (via checkboxes) and the query can be adapted to the user's selections, or do I have to manually write queries for every possible scenario? Thanks.