I have a form in my database named 'OrderMenu_frm' that allows a user to match items from a sales order.
The data from the sales order is populated onto the OrderMenu_frm if the user clicks a "Get New Order" button
on this form.
The user then matches sales order items on this form that are to be configured into a record and clicks a "Match Selected"
button on this form which places the matched items as a record in a table called Total_Items_tbl.
When a match is performed the items that were matched are removed from the form to avoid duplicate items being matched.
Once the user is finished matching all items from the sales order they click a Verify Matched Items button on this form
which opens a continuous form called "SalesOrder_frm" which displays the contents of the Total_Items_tbl table.
From this "SalesOrder_frm" continuous form, the user can edit any of the records displayed. Once finished the
user can click one of two buttons (Add to Database or Discard).
Sorry for the long description and here is the question:
For the Discard button, I want to close this "SalesOrder_frm" continuous form but with the 'OrderMenu_frm' still
open is there a way to automatically run the "Get New Order" button code on the 'OrderMenu_frm' so it populates the
order data back onto this form?
I was reading about setting the Control Source property of a control as =[SalesOrder_frm].Form![Discard_btn] but the Control Source property
does not appear to be available for a button control where I would attempt to apply this to the "Get New Order" button
I appreciate suggestions on how to do this...
Thanks
The data from the sales order is populated onto the OrderMenu_frm if the user clicks a "Get New Order" button
on this form.
The user then matches sales order items on this form that are to be configured into a record and clicks a "Match Selected"
button on this form which places the matched items as a record in a table called Total_Items_tbl.
When a match is performed the items that were matched are removed from the form to avoid duplicate items being matched.
Once the user is finished matching all items from the sales order they click a Verify Matched Items button on this form
which opens a continuous form called "SalesOrder_frm" which displays the contents of the Total_Items_tbl table.
From this "SalesOrder_frm" continuous form, the user can edit any of the records displayed. Once finished the
user can click one of two buttons (Add to Database or Discard).
Sorry for the long description and here is the question:
For the Discard button, I want to close this "SalesOrder_frm" continuous form but with the 'OrderMenu_frm' still
open is there a way to automatically run the "Get New Order" button code on the 'OrderMenu_frm' so it populates the
order data back onto this form?
I was reading about setting the Control Source property of a control as =[SalesOrder_frm].Form![Discard_btn] but the Control Source property
does not appear to be available for a button control where I would attempt to apply this to the "Get New Order" button
I appreciate suggestions on how to do this...
Thanks