I currently have a list box called lstReportEmploy ee and a Query called records. In the query under the field "[Employee ID]" I have the criteria set to the selection made in the list box [Forms]![ReportOpener]![lstReportEmploy ee]
Now on the form [ReportOpener] I have a button cmdCreatePDF which based on the selection from lstReportEmploy ee, exports the report "Letter Report" to PDF ("Letter Report" is linked to the Records query which updates each time an employee is selected from the lstReportEmploy ee box)
The button contains a path to export the file and filename (LastName_First Name < "lstReportEmplo yee.Column(1) & "_" & lstReportEmploy ee.Column(2)"
Now my issue is since there are hundreds of employees it is time consuming to select each employee one at a time and export to PDF. I want to convert my current list box to a multi select list box. However, once I do that the [Forms]![ReportOpener]![lstReportEmploy ee] in the criteria for the query no longer works.
I would like to create a loop that based on the employee(s) selected from the multiselect box will run the query based on the selection and export individual "Letter Report" PDFs for each employee selected
I've been looking at similar posts and cannot find an answer to my question. Any help will be appreciated.
Now on the form [ReportOpener] I have a button cmdCreatePDF which based on the selection from lstReportEmploy ee, exports the report "Letter Report" to PDF ("Letter Report" is linked to the Records query which updates each time an employee is selected from the lstReportEmploy ee box)
The button contains a path to export the file and filename (LastName_First Name < "lstReportEmplo yee.Column(1) & "_" & lstReportEmploy ee.Column(2)"
Now my issue is since there are hundreds of employees it is time consuming to select each employee one at a time and export to PDF. I want to convert my current list box to a multi select list box. However, once I do that the [Forms]![ReportOpener]![lstReportEmploy ee] in the criteria for the query no longer works.
I would like to create a loop that based on the employee(s) selected from the multiselect box will run the query based on the selection and export individual "Letter Report" PDFs for each employee selected
I've been looking at similar posts and cannot find an answer to my question. Any help will be appreciated.
Comment