Hi All
I am at the end of a very long journey with a database I promised I would help with.
Effectively, the salesperson looks up a product from a lookup list, this info goes to a temporary table(Basket)(to protect price rises in the lookup table affecting the customers invoice), where quantities, discounts etc are added, the customer agrees to these quantities\prices and the basket is added to thier invoice
So. the client invoice is on frminvoice and his purchases go onto its subform Frminvoicesub.
The basket is FrmMain and the subform is FrmTempSub
This will transfer the fields on record 1 from the basket to the customer invoice
Forms!FrmInvoice.Form.FrmInvoiceSub.Form.Make = Forms!frmmain!FrmTempSub.Form.Make
Forms!FrmInvoice.Form.FrmInvoiceSub.Form.PrinterNo = Forms!frmmain!FrmTempSub.Form.PrinterNo
Forms!FrmInvoice.Form.FrmInvoiceSub.Form.Cartridge = Forms!frmmain!FrmTempSub.Form.Cartridge
Forms!FrmInvoice.Form.FrmInvoiceSub.Form.Yeild = Forms!frmmain!FrmTempSub.Form.Yeild
Forms!FrmInvoice.Form.FrmInvoiceSub.Form.Cost = Forms!frmmain!FrmTempSub.Form.Cost
Forms!FrmInvoice.Form.FrmInvoiceSub.Form.Item = Forms!frmmain!FrmTempSub.Form.Item
Forms!FrmInvoice.Form.FrmInvoiceSub.Form.Colour = Forms!frmmain!FrmTempSub.Form.Colour
Forms!FrmInvoice.Form.FrmInvoiceSub.Form.capacity = Forms!frmmain!FrmTempSub.Form.capacity
Forms!FrmInvoice.Form.FrmInvoiceSub.Form.Notes = Forms!frmmain!FrmTempSub.Form.Notes
Forms!FrmInvoice.Form.FrmInvoiceSub.Form.discount = Forms!frmmain!FrmTempSub.Form.discount
Forms!FrmInvoice.Form.FrmInvoiceSub.Form.Qty = Forms!frmmain!FrmTempSub.Form.Qty
Forms!FrmInvoice.Form.FrmInvoiceSub.Form.Prevat = Forms!frmmain!FrmTempSub.Form.Prevat
I need to run this through Until all the items in the frmtempsub have been copied (or better still cut and pasted) to the customer invoice.
I know I will need do while eof inthere somewhere and possibly Dim rs As dao.Recordset
Set rs = Me.RecordsetClone
Because thats what I am seeing on the examples I see
Many Thanks
I am at the end of a very long journey with a database I promised I would help with.
Effectively, the salesperson looks up a product from a lookup list, this info goes to a temporary table(Basket)(to protect price rises in the lookup table affecting the customers invoice), where quantities, discounts etc are added, the customer agrees to these quantities\prices and the basket is added to thier invoice
So. the client invoice is on frminvoice and his purchases go onto its subform Frminvoicesub.
The basket is FrmMain and the subform is FrmTempSub
This will transfer the fields on record 1 from the basket to the customer invoice
Forms!FrmInvoice.Form.FrmInvoiceSub.Form.Make = Forms!frmmain!FrmTempSub.Form.Make
Forms!FrmInvoice.Form.FrmInvoiceSub.Form.PrinterNo = Forms!frmmain!FrmTempSub.Form.PrinterNo
Forms!FrmInvoice.Form.FrmInvoiceSub.Form.Cartridge = Forms!frmmain!FrmTempSub.Form.Cartridge
Forms!FrmInvoice.Form.FrmInvoiceSub.Form.Yeild = Forms!frmmain!FrmTempSub.Form.Yeild
Forms!FrmInvoice.Form.FrmInvoiceSub.Form.Cost = Forms!frmmain!FrmTempSub.Form.Cost
Forms!FrmInvoice.Form.FrmInvoiceSub.Form.Item = Forms!frmmain!FrmTempSub.Form.Item
Forms!FrmInvoice.Form.FrmInvoiceSub.Form.Colour = Forms!frmmain!FrmTempSub.Form.Colour
Forms!FrmInvoice.Form.FrmInvoiceSub.Form.capacity = Forms!frmmain!FrmTempSub.Form.capacity
Forms!FrmInvoice.Form.FrmInvoiceSub.Form.Notes = Forms!frmmain!FrmTempSub.Form.Notes
Forms!FrmInvoice.Form.FrmInvoiceSub.Form.discount = Forms!frmmain!FrmTempSub.Form.discount
Forms!FrmInvoice.Form.FrmInvoiceSub.Form.Qty = Forms!frmmain!FrmTempSub.Form.Qty
Forms!FrmInvoice.Form.FrmInvoiceSub.Form.Prevat = Forms!frmmain!FrmTempSub.Form.Prevat
I need to run this through Until all the items in the frmtempsub have been copied (or better still cut and pasted) to the customer invoice.
I know I will need do while eof inthere somewhere and possibly Dim rs As dao.Recordset
Set rs = Me.RecordsetClone
Because thats what I am seeing on the examples I see
Many Thanks