Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / July 2006

Tip: Looking for answers? Try searching our database.

how to convert rows to column in Access

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kirtagrawal@gmail.com - 01 Jul 2006 17:56 GMT
I have one column with 200 rows and would like to convert it into 200
columns with one row.
e.g. sample data is like:

Column 1
abc
cde
efg
ghi
ijk
etc

would like to convert this data into:

col 1    col 2    col 3    col 4    col 5    col 6
abc      cde      efg       ghi      ijk        etc

any help is highly appreciated.
Duane Hookom - 01 Jul 2006 18:10 GMT
The easiest method would be to copy and the paste into Excel where you can
paste "Transpose" a range. If you want to stay in Access, I would add an
AutoNumber "ID" field so each record will be numbered 1-200. Then create a
crosstab query with:

      Field: Title:" "
    Totals: Group By
Crosstab: Row Heading

      Field: ColHead: "Col" & Right("    " & [ID], 3)
    Totals: Group By
Crosstab: Column Heading

      Field: TheValue: [Column 1]
    Totals: First
Crosstab: Value

Signature

Duane Hookom
MS Access MVP

>I have one column with 200 rows and would like to convert it into 200
> columns with one row.
[quoted text clipped - 14 lines]
>
> any help is highly appreciated.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.