I have a subform that displays all of the invoices for the day selected. There is a "Print all" button (code below) that should print all the records in the recordset. I cant figure out why it does not work, but it appears to be only printing one record.
Does anyone have any ideas?
Does anyone have any ideas?
Code:
Dim rs As Recordset
Set rs = frmsubAdminEdit.Form.Recordset
rs.MoveFirst
Do Until rs.EOF
If rs(7) > 0 Then
DoCmd.OpenReport "rptInvoice", acViewNormal, , "OrderID=" & rs(0), , False
rs.Edit
rs(6) = -1
rs.Update
End If
rs.MoveNext
Loop
Set rs = Nothing
Comment