G
Guest
This is my problem, but I lack the programming language/understanding to
accomplish it.
I need to turn a table that looks like this:
field names: DATE ABS_CAN ABS_ONT
ABS_ALB
data: 12/1/1995 50 25
25
data: 12/1/1996 60 30
30
Into this:
field names: ID KEY DATE
VALUE
data: 1 ABS_CAN 12/1/1995
50
data: 2 ABS_CAN 12/1/1996
60
data: 3 ABS_ONT 12/1/1995
25
data: 4 ABS_ONT 12/1/1996
25
And so on....
As I figure, I need to cycle through a) the fields in the original table,
and b) the records in each field of the original table. Would probably look
something like:
for each fld in table.fields
for each ???? in ?????
key = fld.name
...............................?????
Dont know where to go from here. I want to make a new table out of this
query, and it will contain many more tables.
Any help is greatly appreciated, Thanks!
accomplish it.
I need to turn a table that looks like this:
field names: DATE ABS_CAN ABS_ONT
ABS_ALB
data: 12/1/1995 50 25
25
data: 12/1/1996 60 30
30
Into this:
field names: ID KEY DATE
VALUE
data: 1 ABS_CAN 12/1/1995
50
data: 2 ABS_CAN 12/1/1996
60
data: 3 ABS_ONT 12/1/1995
25
data: 4 ABS_ONT 12/1/1996
25
And so on....
As I figure, I need to cycle through a) the fields in the original table,
and b) the records in each field of the original table. Would probably look
something like:
for each fld in table.fields
for each ???? in ?????
key = fld.name
...............................?????
Dont know where to go from here. I want to make a new table out of this
query, and it will contain many more tables.
Any help is greatly appreciated, Thanks!