Excellent idea. I made a new form and tried to hardcode the values:
Private Sub btnPrintRange_Click()
DoCmd.OpenReport "rptInvoice", acViewPreview, , "[invoicenumber] BETWEEN " & 201701150 & " AND " & 201701155
End Sub
but now nothing happens.
Both values are correct and exist.