Hello everyone,
I have tried using a lot of different people's codes to complete this but I am not too familiar with looping.
I have a form where once the user puts the data parameters in the combobox is populated with a list of dental office names. After the user selects the dental office name they then click a button which outputs a query (that uses the date and office name parameters) to excel.
Currently the user is clicking each office name and outputting a "report" manually.
I now have been tasked with making it so that when the button is clicked it will automatically change the combobox value and output the query results to excel, repeating for every name in the combobox.
This is the code I need to change:
If anyone could help me achieve my goal I would be greatly appreciative!
Thanks in advance!
I have tried using a lot of different people's codes to complete this but I am not too familiar with looping.
I have a form where once the user puts the data parameters in the combobox is populated with a list of dental office names. After the user selects the dental office name they then click a button which outputs a query (that uses the date and office name parameters) to excel.
Currently the user is clicking each office name and outputting a "report" manually.
I now have been tasked with making it so that when the button is clicked it will automatically change the combobox value and output the query results to excel, repeating for every name in the combobox.
This is the code I need to change:
Code:
DoCmd.OutputTo acOutputReport, "ClaimsBatchOutputReport", acFormatXLS, _
"[URL="file://\\10.74.8.144\NetworkDevelopment\MS_Database\Reports\Claims"]\\10.74.8.144\NetworkDevelopment\MS_Database\Reports\Claims[/URL] Batch Output\" & Forms!InvoiceOutputParameterDateForm!DentalPracticeNameTxtBx & "_Claims Output Report_" & Format(Date, "dd-mmm-yyyy") & ".xls", True
If anyone could help me achieve my goal I would be greatly appreciative!
Thanks in advance!