I have used Excel for many years, but am new to Access!
I am creating a database on which to log invoices received and track progress with authorisation, disputes, etc. through to eventual payment. As each invoice could have multiple progress updates relating to it, and each progress update could relate to multiple invoices, I'm setting up three tables - an invoices table, a progress update table and a relationships table. The final one simply has three fields - a Relationship ID (allocated by Access) and the Invoice and Progress Update IDs - to allow each progress update to only be stored once, but be associated with the relevant invoices. There's also a form showing the invoice fields with a subform showing the progress updates related to that invoice.
Some progress update records would include attachments, so I'm thinking that in time I'll need to start deleting records that are no longer needed. Invoice records are easy - deletion would be a set period after payment. But is there a way to delete related progress update records only if there are no other remaining invoice records that relate to them?
Thanks!
I am creating a database on which to log invoices received and track progress with authorisation, disputes, etc. through to eventual payment. As each invoice could have multiple progress updates relating to it, and each progress update could relate to multiple invoices, I'm setting up three tables - an invoices table, a progress update table and a relationships table. The final one simply has three fields - a Relationship ID (allocated by Access) and the Invoice and Progress Update IDs - to allow each progress update to only be stored once, but be associated with the relevant invoices. There's also a form showing the invoice fields with a subform showing the progress updates related to that invoice.
Some progress update records would include attachments, so I'm thinking that in time I'll need to start deleting records that are no longer needed. Invoice records are easy - deletion would be a set period after payment. But is there a way to delete related progress update records only if there are no other remaining invoice records that relate to them?
Thanks!