Hi all. Great forum and a few of you guys stand out. I am just a lowly idiot who puts in tons of hours and definitely does it the hard and/or wrong way. I've searched and searched but I cant see a 'correct' way to go about this so heres my problem. Its to do with a Quotations/Orders database.
Each quotation gets a record in tblQuotes and the details go into tbl QuoteDetails related on QuoteID. Only a low percentage of quotations are sucessful so the quote details are vague with about 20 fields.
When an order is placed there is about 120 more items of info needed and the original data in tblQuoteDetails must be preserved so I have tblProductionDetails also linked to tblQuote by QuoteID.
A complication is that a quotation for a Quantity = 5 has to be transferred to the tblProductionDetails as five records because each item might be slightly different even though they were quoted at the same price.
I am copying the Quote Details to the Production Details as follows and it dont feel elegant.
Button on Quote main form to...
Open a recordset (of tblProductionDetails) in code
Go to first record in QuoteDetailsSubForm
Copy the data using a loop on quantity
Move to next record on sub form
Check if last record, exit or loop.
Is that the best way? Should I make the tblQuoteDetails larger by 120 fields that will often be empty? I rather have a fat simple solution than a thin overly complex one.
One other tiny thing. I have a Main Menu form with 5 subforms. Access is always asking me if I want to save subforms that I havn't edited and sometimes just throws me out, closes Access and doesn't save my work. Could this be to do my rubbish code because there is miles of it in there.
No doubt you all think I'm nuts. Sorry if this is total rubbish. Thanks for any replys.
Each quotation gets a record in tblQuotes and the details go into tbl QuoteDetails related on QuoteID. Only a low percentage of quotations are sucessful so the quote details are vague with about 20 fields.
When an order is placed there is about 120 more items of info needed and the original data in tblQuoteDetails must be preserved so I have tblProductionDetails also linked to tblQuote by QuoteID.
A complication is that a quotation for a Quantity = 5 has to be transferred to the tblProductionDetails as five records because each item might be slightly different even though they were quoted at the same price.
I am copying the Quote Details to the Production Details as follows and it dont feel elegant.
Button on Quote main form to...
Open a recordset (of tblProductionDetails) in code
Go to first record in QuoteDetailsSubForm
Copy the data using a loop on quantity
Move to next record on sub form
Check if last record, exit or loop.
Is that the best way? Should I make the tblQuoteDetails larger by 120 fields that will often be empty? I rather have a fat simple solution than a thin overly complex one.
One other tiny thing. I have a Main Menu form with 5 subforms. Access is always asking me if I want to save subforms that I havn't edited and sometimes just throws me out, closes Access and doesn't save my work. Could this be to do my rubbish code because there is miles of it in there.
No doubt you all think I'm nuts. Sorry if this is total rubbish. Thanks for any replys.