| Chat with a LIVE Microsoft
Access Expert! |
||||
|
||||
|
#1
|
|||
|
|||
|
How do I show convert vertical entries to show horizontally
Is it possible to convert fields listed down to show across.
IDNo Code Position AAA B01 1 AAA C01 2 AAA D01 3 AAA E01 4 I want to show it as IDNo Code Code Code Code AAA B01 C01 D01 E01 Is this possible using Access 2003? |
| Sponsored Links |
|
#2
|
|||
|
|||
|
Try searching for ways to create "pivot tables". I think that's what you are describing....
__________________
GoSpursGo |
|
#3
|
|||
|
|||
|
I actually want to show the data rather than count it. Is a pivot the best way to go for that?
|
|
#4
|
|||
|
|||
|
Transpose function? You can do this in Excel, I have never tried in Access.
|
|
#5
|
||||
|
||||
|
You can create a crosstab query (a kind of pivot table).
If you table name is myTable then the query will be: Code:
TRANSFORM First(Code) AS FirstCode SELECT IDNo FROM myTable GROUP BY IDNo PIVOT Position hth Stopher |
|
#6
|
|||
|
|||
|
This works great!!!
Thanks for your help! One last thing - I have some entries where the code field may be empty - is it possible to include them in this query or would I be better running a separate append query? Thanks |
|
#7
|
||||
|
||||
|
Quote:
Stopher |
|
#8
|
|||
|
|||
|
Some records will be populated with a code and some may not yet be coded or may never have a code allocated to them
IDNo Code Position AAA B01 1 AAA C01 2 AAA D01 3 AAA E01 4 BBB CCC When I run the crosstab query it only listed the records with a code allocated and doesn't include any rows without a code. Thanks |
| Sponsored Links |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| show total entries from a table on a form | suggy | Forms | 1 | 05-14-2006 01:18 PM |
| all entries to show up in form | Kekss | Forms | 1 | 02-25-2005 10:23 PM |
| Show customer once even though many entries | Stuart Green | Queries | 6 | 01-14-2004 08:33 AM |