Hello All,
I have an orders form with a button where users can Add Items to the order. Beneath the button is a datasheet subform that’s built off a query that shows all the items in the order. I got the idea from an Order template I saw online.
It works well, except that when a user adds and item, the datasheet subform doesn’t update unless I close the Orders form and reopen it. At one time I had it working, so I’m not sure what happened.
Basically, the user clicks the Add Item button and a popup form appears where they can select a Product and Quantity before clicking “Save & Close”. That subform is bound to the OrderItems table, and the OrderID is passed to that popup subform via OpenArgs. All of the references appear in good shape, and the query itself shows the right data, it just doesn’t update the order items subform when a user clicks “Save & Close”. I have to completely close the Orders form and reopen it before I can see the newly added items.
Does anyone know what I’m doing wrong?
See below a screenshot of my form: