I know there's a lot of stuff around about this topic but I haven't found exactly what I needed. Here's the situation: I have a report which query source has the criteria [Forms]![frmTest]![EmployeeId]. In the form frmTest, I have a combo box which displays the EmployeeId (bound column) and the name. A button calls up the report which successfully generates the report containing only the specific employee. However, I also want to be able to have the option All where the report generates for all employees. For now, I've been going around this by having two reports....one with criteria and one without. This obviously makes it harder to do updates.
I also want to add not just EmployeeId to the list of variables but with the way I'm doing them right now, if you leave one combo box blank the report will probably not run because part of the WHERE clause will be blank.
Guys, any idea how to fix this? I'm not really big on VB but I can definitely follow instructions. Basically, I want to be able to use just one report for specific and "all" reports and be able to add more than one combo box for the form to get the variables.
I also want to add not just EmployeeId to the list of variables but with the way I'm doing them right now, if you leave one combo box blank the report will probably not run because part of the WHERE clause will be blank.
Guys, any idea how to fix this? I'm not really big on VB but I can definitely follow instructions. Basically, I want to be able to use just one report for specific and "all" reports and be able to add more than one combo box for the form to get the variables.