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 / December 2005

Tip: Looking for answers? Try searching our database.

Crosstab Problem...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Olly - 22 Dec 2005 18:26 GMT
I want to transform data such as;

Col a  Col b Col c
1         13     45
1         17     670  
1         110   32
2          3       51
2         65      540

into;
Col a  1    2     3  
1      45   670  32
2       51   540  

i.e. I want to do a crosstab, where Col C has the values, col b values are
not important but they give the order, and so instead of using colb as the
column headers I want to use a kind of autonumber.

Any suggestions would be much appreciated!
:o)
Thanks!
Duane Hookom - 22 Dec 2005 18:42 GMT
You can create your Column Heading values from your original records by
using a calculated column like:

ColHead: "Col" & DCount("*","data such as","[Col a]=" & [Col a] & " AND [Col
b]<=" & [Col b])

Signature

Duane Hookom
MS Access MVP

>I want to transform data such as;
>
[quoted text clipped - 17 lines]
> :o)
> Thanks!
Olly - 23 Dec 2005 12:10 GMT
Thanks very much Duane !

Huge help,  problem was bugging me for ages!

> You can create your Column Heading values from your original records by
> using a calculated column like:
[quoted text clipped - 23 lines]
> > :o)
> > Thanks!
Duane Hookom - 23 Dec 2005 15:54 GMT
With a DCount() in the select statement it may take "for ages" to run.

Signature

Duane Hookom
MS Access MVP
--

> Thanks very much Duane !
>
[quoted text clipped - 30 lines]
>> > :o)
>> > Thanks!
 
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.