Hi All,
I have been reading some of the threads in your forum and decided to join and post my question. Hopefully it won't be too lengthy.
I have created an Unbound Form called paramform2. This form contains two combo boxes, a text box for the start date, a text box for the end date and a command button that runs the report.
The first combo box is named FindMgr. The row source of this box is set to: SELECT"All" As MgrName FROM tblMain UNION SELECT MgrName FROM tblMain ORDER BY MgrName. Column Count and Bound Column are both set to 1. The After Update event is:
Me!FindMgr.Requ ery
Me!FindMgr.SetF ocus
The second combo box is named: FindDBS. The row source of this box is set to: SELECT DISTINCT strDBS FROM tblMain WHERE MGRName=Forms!P aramForm2.FindM gr ORDER BY strDBS; Column Count and Bound column are both set to 1.
The criteria in the query for both boxes are: [Forms]![ParamForm2].[FindMgr] and [Forms]![ParamForm2].[FindDBS]
When I select a one manager name and one employee name and run the report, I get a report for all of the employees listed under that Manager.
There are two things I need to be able to do:
1. Select one manager name and one employee name and have the report run just for that manager and that one employee.
2. Select a manager name and have a report run for all of the employees under that manager.
Is there a way to do this? Any help would be greatly appreciated.
Thank you.
I have been reading some of the threads in your forum and decided to join and post my question. Hopefully it won't be too lengthy.
I have created an Unbound Form called paramform2. This form contains two combo boxes, a text box for the start date, a text box for the end date and a command button that runs the report.
The first combo box is named FindMgr. The row source of this box is set to: SELECT"All" As MgrName FROM tblMain UNION SELECT MgrName FROM tblMain ORDER BY MgrName. Column Count and Bound Column are both set to 1. The After Update event is:
Me!FindMgr.Requ ery
Me!FindMgr.SetF ocus
The second combo box is named: FindDBS. The row source of this box is set to: SELECT DISTINCT strDBS FROM tblMain WHERE MGRName=Forms!P aramForm2.FindM gr ORDER BY strDBS; Column Count and Bound column are both set to 1.
The criteria in the query for both boxes are: [Forms]![ParamForm2].[FindMgr] and [Forms]![ParamForm2].[FindDBS]
When I select a one manager name and one employee name and run the report, I get a report for all of the employees listed under that Manager.
There are two things I need to be able to do:
1. Select one manager name and one employee name and have the report run just for that manager and that one employee.
2. Select a manager name and have a report run for all of the employees under that manager.
Is there a way to do this? Any help would be greatly appreciated.
Thank you.
Comment