Hi
I have managed to get the underlaying record by filtering, from the filtered record I want to create a new record to be used as a credit note. The filter below gets the invoice detail all of it, instead of recapturing the records one by one I'm using filter below, now I want to use that record to be new record or addition so that I create a credit note.
How do I convert that record to new addition so that I can convert it to a credit note
Here is the filter
I have managed to get the underlaying record by filtering, from the filtered record I want to create a new record to be used as a credit note. The filter below gets the invoice detail all of it, instead of recapturing the records one by one I'm using filter below, now I want to use that record to be new record or addition so that I create a credit note.
How do I convert that record to new addition so that I can convert it to a credit note
Here is the filter
Code:
On Error GoTo Err_Handler
Me.Filter = "InvoiceID = " & Me!CboInvReversal.Value & ""
Me.FilterOn = True
Dim Records As DAO.Recordset
Set Records = Me![sfrmLineDetails Subform].Form.RecordsetClone
If Records.RecordCount > 0 Then
Records.MoveFirst
While Not Records.EOF
Records.Edit
Records.Update
Records.MoveNext
Wend
End If
Records.Close
Exit_CboInvReversal_AfterUpdate:
Exit Sub
Err_Handler:
MsgBox Err.Number & Err.Description, vbExclamation, "Error"
Resume Exit_CboInvReversal_AfterUpdate