I generated a report. So I created 2 combo boxes and one list box on the form.
In Combo boxes select crieteria 1. Branch 2. Department. Report names were listed on the list box.
I created in query crieteria [forms]![forsname]![comboname] for branch and Department.
When the user selects the data from the two combo boxes and then double click on the report name in the list box,It is printing the report based on the combo selection.
If the user selects the branch name from the combo box and has not selected anything else from the department combo box and when the user clicked on the report name in the list box it has to print the report from all the departments information under that branch name. How can i change the cireteria in the query or is there any way to create a code on the list box event procedure?
I appreciate your help.
In Combo boxes select crieteria 1. Branch 2. Department. Report names were listed on the list box.
I created in query crieteria [forms]![forsname]![comboname] for branch and Department.
When the user selects the data from the two combo boxes and then double click on the report name in the list box,It is printing the report based on the combo selection.
If the user selects the branch name from the combo box and has not selected anything else from the department combo box and when the user clicked on the report name in the list box it has to print the report from all the departments information under that branch name. How can i change the cireteria in the query or is there any way to create a code on the list box event procedure?
I appreciate your help.