Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
' Report will not filter if open, so make sure it is closed If CurrentProject.AllReports(strDoc).IsLoaded Then DoCmd.close acReport, strDoc End If ' This section determines what option the user has selected from the print option group. ' based upon the user selection, it will either Preview, Print or Export to Excel '======================================================================================== If Print_Company_Product_Support.Value = 2 And PrintReport_OptionGroup.Value >= 1 And Len(strWhere) <= 0 Then ' If the select criteria is enabled and the user is trying to print then check that values have been selected MsgBox "Please Select A Value From One of the Dropdown Boxes", vbInformation, "No Filter Criteria Selected!" Else intOptionValue = PrintReport_OptionGroup.Value ' Set variable to the Option group value ' MsgBox intOptionValue ' Display Option variable for TESTING purposes Select Case intOptionValue ' Go through case options and act based upon its value Case 1 ' if preview report is selected then preview ' This is a temporary message while I figure out how to preview such a large report MsgBox "This feature is not yet working due to the size of the report" ' DoCmd.OpenReport strDoc, acViewPreview, , strWhere ' Reports(strDoc).FilterOn = True '----- ' case 2 not yet setup Case 3 ' if Export report is selected then export to Excel DoCmd.OpenReport strDoc, acViewPreview, , strWhere, acIcon Reports(strDoc).FilterOn = True RunCommand acCmdOutputToExcel DoCmd.close acReport, strDoc End Select End If '======================================================================================== Exit_Handler: Exit Sub Err_Handler: If Err.Number <> 2501 Then 'Ignore "Report cancelled" error. MsgBox "Error " & Err.Number & " - " & Err.Description, , "cmdPreview_Click" ElseIf Err.Number = 2451 Then ' Ignore error and reset Err.Clear End If Resume Exit_Handler End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
|Why this Update SQL not Updating!||15||57|
|Displaying images within Access Form||6||74|
|Microsoft Access 32-bit or 64-bit?||11||58|
|DateSerial Function. I receive "Data mismatch" when adding "Between Date" criteria Expression||3||40|
Join the community of 500,000 technology professionals and ask your questions.