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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Rotate" table in query

Status
Not open for further replies.

TSchrupp

Programmer
Jul 24, 2002
4
US
Hi all,

I have a table linked from another db with this structure:

Date Contract Field1 Field2 Field3 ...
1/1 A 0.00 0.00 0.00

I need to select the the FieldX column names as data, with the corresponding data as a row into this format:

Item Date Contract Amount
Field1 1/1 A 0.00
Field2 ......

Any help with this one out there? Multiple queries are not a problem, the db will be relatively small, so performance shouldn't be a major issue. I'm not against doing this as a make-table or update query, since the table designs of the two databases are so different.

TIA

Tim
 
I made an error in the new format for this query. It should be

Item Contract Date1Amount Date2Amount ...
Field1 A 0.00 0.00
Field2 A 0.00 0.00

Sorry for the confusion

Tim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top