R
rfuscjr via AccessMonster.com
I have some data stored in a table but not in a user friendly format. I want
to transform it a new table. I want to accomplish this with some code behind
a button on a form.
Here is the structure of the current and desired tables as well as a sample.
Can someone help with the code?
CURRENT TABLE:
tblNasty
tblNasty.Id
tnlNasty.List
NEW TABLE
tblNice
tblNice.Id
tblNice.ListItem
tblNice.Sequence
Example Convert:
Id List
111 5^668^777^65^6
222 77^82
333 6
To:
Id List Sequence
111 5 1
111 668 2
111 777 3
111 65 4
111 6 5
222 77 1
222 82 2
333 6 1
to transform it a new table. I want to accomplish this with some code behind
a button on a form.
Here is the structure of the current and desired tables as well as a sample.
Can someone help with the code?
CURRENT TABLE:
tblNasty
tblNasty.Id
tnlNasty.List
NEW TABLE
tblNice
tblNice.Id
tblNice.ListItem
tblNice.Sequence
Example Convert:
Id List
111 5^668^777^65^6
222 77^82
333 6
To:
Id List Sequence
111 5 1
111 668 2
111 777 3
111 65 4
111 6 5
222 77 1
222 82 2
333 6 1