I have developed several apps in VB6 but still a newbie with this type of app.
A user puts some data in a grid and I save it in a table. The grid has a fixed number of columns but the rows vary depending on his input. That part works just fine.
Now I want to for want of a better term do a transaction. So the user opens another form showing the data he originally input. He makes changes in the grid in certain columns and I want to now save it as let's say trans1. I have the original grid that he pulls up bound to a control to show the data he originally input. But I want to save the changes somehow to be trans1 probably in a new table.
Then he makes another transaction making more changes to the grid and I want to save it as trans2 (BTW I have a textbox showing the next transaction which is now 2 shown on the form) and I need to save it as 2 for each row. So hopefully if the user pulls up trans2 it will show only that information pertaining to trans2.
My problem is I don't know how in the db to have all the rows associated with trans1 have the same ID number and of course the next trans2 with an ID number of 2 since there are several rows (and they vary) involved in each transaction.
Thanks for any and all help.
A user puts some data in a grid and I save it in a table. The grid has a fixed number of columns but the rows vary depending on his input. That part works just fine.
Now I want to for want of a better term do a transaction. So the user opens another form showing the data he originally input. He makes changes in the grid in certain columns and I want to now save it as let's say trans1. I have the original grid that he pulls up bound to a control to show the data he originally input. But I want to save the changes somehow to be trans1 probably in a new table.
Then he makes another transaction making more changes to the grid and I want to save it as trans2 (BTW I have a textbox showing the next transaction which is now 2 shown on the form) and I need to save it as 2 for each row. So hopefully if the user pulls up trans2 it will show only that information pertaining to trans2.
My problem is I don't know how in the db to have all the rows associated with trans1 have the same ID number and of course the next trans2 with an ID number of 2 since there are several rows (and they vary) involved in each transaction.
Thanks for any and all help.