MajP
You've got your good things, and you've got mine.
- Local time
- Today, 02:17
- Joined
- May 21, 2018
- Messages
- 9,378
Taking my suggestion add the following
Now your main form recordsource should include
Where RecordType is null
Because you do not want to see the duplicates.
Then Only show the duplicate button where the current Invoice does not have a child invoice. You do not want to duplicate, duplicates.
tblInvoiceHeader
Code:
![Customer Name] = Me.[Customer_Name]
!City = Me.City
!InvoiceDate = Me.InvoiceDate
!ParentInvoice = Me.InvoiceID
!RecordType = "Rollback"
.Update
Now your main form recordsource should include
Where RecordType is null
Because you do not want to see the duplicates.
Then Only show the duplicate button where the current Invoice does not have a child invoice. You do not want to duplicate, duplicates.
InvoiceID | Customer Name | City | InvoiceDate | ParentInvoice | RecordType |
---|---|---|---|---|---|
1 | Jones Supermarket | New Livingstone | 3/10/2025 | ||
2 | Jones Supermarket | New Livingstone | 3/10/2025 | 1 | Rollback |