I have a form where the user can create a new order. The user input a PO and then a unique orderID is created. there is a subform on the form which is linked through the OrderID which contain details about the order (contains different products, quantities, ect.)
Is there any way that this same form can also function as an order editor, where the user can select an PO and OrderID combination from a dropdown menu and have all the information about the order in both the form and the subform come up so they can edit it (ie. add products, add quantities)
Since the PO is not the unique ID, if i enter an existing PO it only creates another record witht he same PO. If i try and enter an existing OrderID, i am not allowed because it is an autogen field. So how I am able to bring up an existing record I do not know. I know that I could do this with another form; however, I am wondering if there is anyway to accomplish this in the same form.
i have provided all the relevant feilds on the main and subform
frmOrder
txtPO
control source: PO
OrderID
control source: OrderID (autonumber)
frmOrderDetail
txtOrderID
control source: OrderID (linked to main form)
txtOrderDetailID
control source: OrderDetailID
Is there any way that this same form can also function as an order editor, where the user can select an PO and OrderID combination from a dropdown menu and have all the information about the order in both the form and the subform come up so they can edit it (ie. add products, add quantities)
Since the PO is not the unique ID, if i enter an existing PO it only creates another record witht he same PO. If i try and enter an existing OrderID, i am not allowed because it is an autogen field. So how I am able to bring up an existing record I do not know. I know that I could do this with another form; however, I am wondering if there is anyway to accomplish this in the same form.
i have provided all the relevant feilds on the main and subform
frmOrder
txtPO
control source: PO
OrderID
control source: OrderID (autonumber)
frmOrderDetail
txtOrderID
control source: OrderID (linked to main form)
txtOrderDetailID
control source: OrderDetailID