Hello all,
I hope someone can help.
How do I update a record via an event procedure?
I will try to explain...as best I can...
In my access db I have a button that will produce (via an event procedure) an invoice/report for a given customer of all transactions to date. What I want to do is update the transaction records that are shown on the invoice when it is produced as "already invoiced" (a field in my transaction log table) so that if the customer makes more transactions after the last invoice was produced they do not appear on the next invoice so it will only show records which have occurred since last invoice.
Could I call a macro via the event procedure? If so, how?
Did I make sense??
Here is the current event procedure vb:
Private Sub invoice_Click()
On Error GoTo Err_invoice_Click
Dim stDocName As String
stDocName = "rpt_invoice"
DoCmd.OpenReport stDocName, acPreview
Exit_invoice_Click:
Exit Sub
Err_invoice_Click:
MsgBox Err.Description
Resume Exit_invoice_Click
End Sub
Many Thanks.
I hope someone can help.
How do I update a record via an event procedure?
I will try to explain...as best I can...
In my access db I have a button that will produce (via an event procedure) an invoice/report for a given customer of all transactions to date. What I want to do is update the transaction records that are shown on the invoice when it is produced as "already invoiced" (a field in my transaction log table) so that if the customer makes more transactions after the last invoice was produced they do not appear on the next invoice so it will only show records which have occurred since last invoice.
Could I call a macro via the event procedure? If so, how?
Did I make sense??
Here is the current event procedure vb:
Private Sub invoice_Click()
On Error GoTo Err_invoice_Click
Dim stDocName As String
stDocName = "rpt_invoice"
DoCmd.OpenReport stDocName, acPreview
Exit_invoice_Click:
Exit Sub
Err_invoice_Click:
MsgBox Err.Description
Resume Exit_invoice_Click
End Sub
Many Thanks.