F
frank
Hello,
I've created a database for tracking invoices and have a
couple design questions about how to cancel and save
records. I've created 2 temp tables (temp_Invoice,
temp_InvoiceDetails) that are used for modifying or adding
Invoices before populating the main database.
If a user chooses to modify a invoice, I have a proceedure
that copies the data into the temp tables. If they choose
not to save the record I simply delete the information in
the temp table. Once the data is ready to be put into the
main database its validated and then inserted or updated
using transactions. Is this the proper way of doing this?
Also, If a invoice detail is modified in the temp table,
how would i only update the field that changed in the main
table rather then looping through the recordset and
updating every record?
Thanks
I've created a database for tracking invoices and have a
couple design questions about how to cancel and save
records. I've created 2 temp tables (temp_Invoice,
temp_InvoiceDetails) that are used for modifying or adding
Invoices before populating the main database.
If a user chooses to modify a invoice, I have a proceedure
that copies the data into the temp tables. If they choose
not to save the record I simply delete the information in
the temp table. Once the data is ready to be put into the
main database its validated and then inserted or updated
using transactions. Is this the proper way of doing this?
Also, If a invoice detail is modified in the temp table,
how would i only update the field that changed in the main
table rather then looping through the recordset and
updating every record?
Thanks