I'm not sure how to accomplish the following, so any help is much appreciated:
I have a table in MS Access that holds information about orders. What I want to do is loop through each record in the orders table, reading the value for the Quantity field. Then I'd like to add the current row of data to another table, creating copies of this row equating to the Quantity value. For example, if the current row has a Quantity of 10, then I need to add 9 copies of this record, along with the original record, to the new table. If the current row has a Quantity of 1, then I only want to add this row to the new table without any copies. Make sense?
My development environment is VB.Net.
Thanks!
Randy
I have a table in MS Access that holds information about orders. What I want to do is loop through each record in the orders table, reading the value for the Quantity field. Then I'd like to add the current row of data to another table, creating copies of this row equating to the Quantity value. For example, if the current row has a Quantity of 10, then I need to add 9 copies of this record, along with the original record, to the new table. If the current row has a Quantity of 1, then I only want to add this row to the new table without any copies. Make sense?
My development environment is VB.Net.
Thanks!
Randy