Below is coding when saving an invoice.
If chkPrintInvoice is checked, then print invoice.
Finally it moves to a new record.
Code:If Me.chkPrintInvoice = True Then DoCmd.OpenReport "rptInvoice", acViewPreview, , "InvNo='" & Me.InvNo & "'" End If DoCmd.RunCommand acCmdRecordsGoToNew
If not print invoice, it can go to a new record.
But when it print, it shows an error 2046 : The Command or action 'RecordsGoToNew' isn't available now.