Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Transpose fields into data

Status
Not open for further replies.

milesada

Programmer
Oct 5, 2001
12
0
0
US
I've got a table with a structure of:

BuildingID PersonId Value1 Value2 Value3
123 001 564 1 952
123 002 122 36 512


What I need to do is transpose the values thusly:

BuildingId PersonId ValueId ValueValue
123 001 1 564
123 001 2 1
123 001 3 952
123 002 1 122
123 002 2 36
123 002 3 512

There's 96 values for each PersonId, so a way to do this automatically/programatically would make my life much easier! :) Thanks in advance!
 
Hi
In the tables section, index the field that you want, PersonID in this case. Click on the index button in the design view and follow the wizard, no coding needed and values are automatically sorted whenever there is a new entry...

hth

Bastien

There are many ways to skin this cat,
but it still tastes like chicken
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top