Hi again, Would this somehow need to be done simultaneously? I guess what I mean is; How do I know what the value of "AmountDue" would be, before creating the items in InvoicesTasks table?
I am supposing I would need to create the tasks in the task table first and at any interval I need. At some point in generating the invoice I will need to select the tasks I want to include for that particular invoice. Do I need to somehow combine the values of "SubTotal" for each task and insert that value into "AmountDue" in Invoices and then insert each task associated with that invoice into InvoicesTasks all in one action page? Thanks, Mike > -----Original Message----- > As a pointer, what you need to do in terms of creating the > invoice, is to first create the single record in invoices > table. Then run a loop of the actual tasks you wish to > include in the invoice and enter each task as a new record in > the invoicestasks table, so your entries could look like. > > Invoices > /////////////// > InvoiceID InvoiceDate AmountDue etc... > 3 11/08/2001 3000 > > > InvoicesTasks > /////////////// > TaskID InvoiceID Description etc... > 5 3 task1 > 6 3 task2 > 7 3 task3 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

