I have a table that has the fields CustomerID, ProductID, Qty, SalesPrice.
One CustomerID will have several records listing different ProductID's and prices etc.
I would like to have a button on my form that can copy these details from this table of a particular CustomerID (specified by some code sitting behind the button), and append the same table with these details except with a different CustomerID.
Can this be accomplished with an append query and some code to set the correct CustomerID or is this (preferable/only possible) with code that steps through each record of the relevant CustomerID, copying all the fields except CustomerID and appending the table with these details plus the correct CustomerID using something such as SELECT and INSERT type statements?
Thanks for any help.
One CustomerID will have several records listing different ProductID's and prices etc.
I would like to have a button on my form that can copy these details from this table of a particular CustomerID (specified by some code sitting behind the button), and append the same table with these details except with a different CustomerID.
Can this be accomplished with an append query and some code to set the correct CustomerID or is this (preferable/only possible) with code that steps through each record of the relevant CustomerID, copying all the fields except CustomerID and appending the table with these details plus the correct CustomerID using something such as SELECT and INSERT type statements?
Thanks for any help.