AvesRule33
Technical User
I hope someone can help me with this. I know I have done this before, but for the life of me for some reason I can not come up with a solution to make this work.
I have a Form [frmPayInvoice] which is based off of a select query result [qryPayInvoice] which is pulling data from my [Repairs] table.
What I need to be able to do is for the user to be able to check the Yes/No Checkbox for all of the invoices that they are going to pay (Which automatically changes each record in the [Repairs] table to "Yes" - this works).
What I am having trouble with is that I also have several bound fields [DatePaid] and [CheckNo] on this form that I want the user to only have to enter once and it will update all the records that have a Checkmark in the Checkbox [PayInvoice].
I have this running off of a simple Macro trying to use a simple Update query [qryPayInvoiveUpdate]. The query is written like this:
Field: DatePaid CheckNo InvoiceNo
Table: Repairs Repairs Repairs
UpdateTo: [forms]![frmPayInvoice]![DatePaid]
[forms]![frmPayInvoice]![CheckNo]
Criteria: (This is only under the [InvoiceNo] field)
[forms]![frmPayInvoice]![InvoiceNo]
When I run the update query it will only update the last record with the DatePaid and CheckNo values.
I also tried using the [InvoicePaid] = Yes, but then all of my records get updated with the DatePaid and CheckNo values - not just the records on the form that I have selected.
If anyone could offer up any suggestions on how to get these records to update correctly I would Greatly Appreciate it.
I have a Form [frmPayInvoice] which is based off of a select query result [qryPayInvoice] which is pulling data from my [Repairs] table.
What I need to be able to do is for the user to be able to check the Yes/No Checkbox for all of the invoices that they are going to pay (Which automatically changes each record in the [Repairs] table to "Yes" - this works).
What I am having trouble with is that I also have several bound fields [DatePaid] and [CheckNo] on this form that I want the user to only have to enter once and it will update all the records that have a Checkmark in the Checkbox [PayInvoice].
I have this running off of a simple Macro trying to use a simple Update query [qryPayInvoiveUpdate]. The query is written like this:
Field: DatePaid CheckNo InvoiceNo
Table: Repairs Repairs Repairs
UpdateTo: [forms]![frmPayInvoice]![DatePaid]
[forms]![frmPayInvoice]![CheckNo]
Criteria: (This is only under the [InvoiceNo] field)
[forms]![frmPayInvoice]![InvoiceNo]
When I run the update query it will only update the last record with the DatePaid and CheckNo values.
I also tried using the [InvoicePaid] = Yes, but then all of my records get updated with the DatePaid and CheckNo values - not just the records on the form that I have selected.
If anyone could offer up any suggestions on how to get these records to update correctly I would Greatly Appreciate it.