I tried using a new database and I still get the same results :/.
DoCmd.SetWarnings False
DoCmd.OutputTo objecttype:=acOutputReport, objectName:="Feedbacksheet_Q20", outputformat:=acFormatPDF, outputFile:=exportpath & "Feedback for group" & Groupnumber & ".pdf"
DoCmd.SetWarnings True
That is...