ooops
ON Error GoTo Err_Handler
Dim strReportName As String
strReportName = "HighLight"
DoCmd.SendObject acReport, strReportName, acFormatPDF, "", , , "Highlight overzicht: " & Form_Start.KlantenNummer & " - " & Form_Start.ProjectNaam & " - " & Form_ProjectTodo.Startdatum, , True
OpenInNewWindow:
Open in New WindowSelect All
Exit_ThisSub:
Exit Sub
Err_Handler:
If Err.Number = 2501 Then GoTo OpenInNewWindow
MsgBox Err.Number & ", " & Err.Description, , "Error"
Resume Exit_ThisSub