Seph
Member
- Local time
- Today, 05:23
- Joined
- Jul 12, 2022
- Messages
- 72
Hi everyone,
I'm attempting to use the following VBA code to print a record on a form:
The form InvoiceActiveList that the record is on uses a query as its record source.
The query filters and shows only Unpaid records.
So once a record is marked Paid, it "disappears" from the form and moves to InvoicePaidList.
The DoCmd.OpenReport then prints the next Unpaid record in the InvoiceActiveList form.
Is there a method that I can be more specific with the WhereCondition?
Thanks!
I'm attempting to use the following VBA code to print a record on a form:
Code:
Me![Paid] = True
Me.Refresh
DoCmd.OpenReport IIf(SalesInvoice, "InvoiceSalesR", "InvoiceJobR"), acViewPreview, , "InvoiceID=" & InvoiceID
The form InvoiceActiveList that the record is on uses a query as its record source.
The query filters and shows only Unpaid records.
So once a record is marked Paid, it "disappears" from the form and moves to InvoicePaidList.
The DoCmd.OpenReport then prints the next Unpaid record in the InvoiceActiveList form.
Is there a method that I can be more specific with the WhereCondition?
Thanks!