Ok so here is my problem.
I have a subform that I use to capture upto 6 different items that a user can order within 1 customer order (this is the main form). Now I would like to have the user be able to come back to the form and "cancel" any 1 item off of a certain order number. I would like to add a cancel button next to each line item such that when they press it, it deletes that item from the main tblorder and places it in a tblHistory. I need to keep the canceled orders for historical reasons, and to create customer satisfaction metrics later on. How can i do this? From what i've read, some things i've come accross are append query's, but i think that there can be a simple way to write this in an On Click event for a button, in VBA.
Also each line item has multiple combo boxes that contain data I want to "delete", each combo box goes to a column in the tblOrder. I would name the columns in the tblHistory the same as the columns in the tblOrder.
In addition I would like the Order Number (which is in the main form and is a primary key) to be extracted with the cancel button so that I can cross reference items with order numbers for report purposes later on. Any help will be greatly appretiated.
Tank you
Mustansir Jeevanjee
I have a subform that I use to capture upto 6 different items that a user can order within 1 customer order (this is the main form). Now I would like to have the user be able to come back to the form and "cancel" any 1 item off of a certain order number. I would like to add a cancel button next to each line item such that when they press it, it deletes that item from the main tblorder and places it in a tblHistory. I need to keep the canceled orders for historical reasons, and to create customer satisfaction metrics later on. How can i do this? From what i've read, some things i've come accross are append query's, but i think that there can be a simple way to write this in an On Click event for a button, in VBA.
Also each line item has multiple combo boxes that contain data I want to "delete", each combo box goes to a column in the tblOrder. I would name the columns in the tblHistory the same as the columns in the tblOrder.
In addition I would like the Order Number (which is in the main form and is a primary key) to be extracted with the cancel button so that I can cross reference items with order numbers for report purposes later on. Any help will be greatly appretiated.
Tank you
Mustansir Jeevanjee