Rotate tables (1 Viewer)

$ Sugar Daddy $

New member
Local time
Today, 14:09
Joined
Oct 31, 2006
Messages
4
Is it possible to switch a table so that the columns become the rows and the rows become the columns and having the data change with it?

Thanks
 

KeithG

AWF VIP
Local time
Today, 11:09
Joined
Mar 23, 2006
Messages
2,592
Kind of using Excel. First select all the data in your table and copy it. Then open up Excel and paste the data to the spreadsheet. Next, select the data and choose copy. Open up a new worksheet and select paste special and choose transpose.
 

pdx_man

Just trying to help
Local time
Today, 11:09
Joined
Jan 23, 2001
Messages
1,347
I think I saw something posted somewhere about a Transpose function. Do a search on this forum for Transpose.
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 13:09
Joined
Feb 28, 2001
Messages
27,128
Beware that if you have ANY relationships at all using the source table, if you actually change that table, you kill the relationships.

This thing you want to do is a flat-file concept in a relational world. For a really short table, it makes sense. If the table has more than 255 records, though, you are screwed supremely because the resulting "flipped" table will require more fields than Access allows.

There is also the issue that the keys in this table suddenly make no sense either, even if no external relationships exist.

STRONGLY recommend rethinking the requirement to look for normalization and other "gotcha" items. If this is a one-time change, OK. If this is a commonly repeated event, your concept is going to eat your socks very quickly. Access might not be the tool for you. In that case, look hard at doing this entirely via Excel.
 

Users who are viewing this thread

Top Bottom