P
Peter Smith
Hi
I have an order form that I fill in, and then I have a button on the order
form to create an invoice.
The invoice has a 'Purchases' subform which I want to fill with data from
the order form. (I know this is not good wrt normalisation, but it seems
the best way for the job.)
The following code fills line one of the subform which is in 'Continuous
Forms' view. How do I tell Access to move to line 2 of the form to add the
other products?
tia
- Peter
------ SAMPLE CODE ---------------------------------------
[Forms]![invoices]![Purchases]![ProductID] = ProdID
' The above line brings product details into a combo box field
[Forms]![invoices]![Purchases].[Form]!Quantity = [Forms]!frmorder!RBoxes
[Forms]![invoices]![Purchases].[Form]!Price = RFCost / RBoxes
I have an order form that I fill in, and then I have a button on the order
form to create an invoice.
The invoice has a 'Purchases' subform which I want to fill with data from
the order form. (I know this is not good wrt normalisation, but it seems
the best way for the job.)
The following code fills line one of the subform which is in 'Continuous
Forms' view. How do I tell Access to move to line 2 of the form to add the
other products?
tia
- Peter
------ SAMPLE CODE ---------------------------------------
[Forms]![invoices]![Purchases]![ProductID] = ProdID
' The above line brings product details into a combo box field
[Forms]![invoices]![Purchases].[Form]!Quantity = [Forms]!frmorder!RBoxes
[Forms]![invoices]![Purchases].[Form]!Price = RFCost / RBoxes