Form Coding Help
I would like a suggestion of how to do the below. My database consist of eight different departments with their salary information. I have built 8 reports & 8 Queries that contain the exact same info except the department, my goal is just to build one report and one query and have a parameter to filter the data. My problem is that one department is not allowed to see the others salary info. That is the reason for the 8 different queries/reports. I have a Access secured form for each department, with the reports running on a onclick event
How do I code the forms to use the same query and pass that department names as the parameter. Something like a parameter query, but hard coded behind the form. I Have multiple expressions in my query and my report has a really detailed format. Can I do anything like the below, or if i have to do a SQL statement how do I reference the report I want to fill from my query.
DoCmd.OpenReport "rptSalaryInfo", acPreviewacForm, where department = "BusLoanOps"
I would like a suggestion of how to do the below. My database consist of eight different departments with their salary information. I have built 8 reports & 8 Queries that contain the exact same info except the department, my goal is just to build one report and one query and have a parameter to filter the data. My problem is that one department is not allowed to see the others salary info. That is the reason for the 8 different queries/reports. I have a Access secured form for each department, with the reports running on a onclick event
How do I code the forms to use the same query and pass that department names as the parameter. Something like a parameter query, but hard coded behind the form. I Have multiple expressions in my query and my report has a really detailed format. Can I do anything like the below, or if i have to do a SQL statement how do I reference the report I want to fill from my query.
DoCmd.OpenReport "rptSalaryInfo", acPreviewacForm, where department = "BusLoanOps"