473,508 Members | 2,380 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Columns vs rows

RR
Normally when I run a query, each record is displayed in a row, and the
colums contain the field titles.

Is there a way to switch this and have each record in a column, and the
names of the fields would be the rows?

This will need to be exported to excel. That part I understand, just not
changing the rows and columns around.

Thanks
Nov 13 '05 #1
6 4811
It might be possible to construct a crosstab query that will do this,
otherwise I don't think it's possible.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

"RR" <te**********@yahoo.com> wrote in message
news:Oy******************@tornado.texas.rr.com...
Normally when I run a query, each record is displayed in a row, and the
colums contain the field titles.

Is there a way to switch this and have each record in a column, and the
names of the fields would be the rows?

This will need to be exported to excel. That part I understand, just not
changing the rows and columns around.

Thanks

Nov 13 '05 #2
RR
Thanks for the response.

I've tried to get a cross tab to work, but I cant figure out anything that
would work. Crosstabs arent something I use a lot, so I am not sure of the
ins and outs of them.
"Douglas J. Steele" <NOSPAM_djsteele@NOSPAM_canada.com> wrote in message
news:4P********************@rogers.com...
It might be possible to construct a crosstab query that will do this,
otherwise I don't think it's possible.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

"RR" <te**********@yahoo.com> wrote in message
news:Oy******************@tornado.texas.rr.com...
Normally when I run a query, each record is displayed in a row, and the
colums contain the field titles.

Is there a way to switch this and have each record in a column, and the
names of the fields would be the rows?

This will need to be exported to excel. That part I understand, just not changing the rows and columns around.

Thanks


Nov 13 '05 #3
Hi RR:

Here's a link to an article from the Microsoft Knowledge Base on exactly
your question. It gives 2 ways to accomplish your goal. I hope it helps.
It is for Access 97, but it should still work in later versions.

The article is named "How to Transpose Data in a Table or Query", it is
article Q182822. You can find it at the following url:

http://support.microsoft.com/default...b;en-us;182822

Good luck!

Alan

"RR" <te**********@yahoo.com> wrote in message
news:Oy******************@tornado.texas.rr.com...
Normally when I run a query, each record is displayed in a row, and the
colums contain the field titles.

Is there a way to switch this and have each record in a column, and the
names of the fields would be the rows?

This will need to be exported to excel. That part I understand, just not
changing the rows and columns around.

Thanks

Nov 13 '05 #4
RR,
Excel will paste/transform a range exactly as you ask. It's under the
Paste/Special dialogue. Since the data is headed to Excel anyway I'd
probably not bother with trying to get Access to do it. I'd have Access
output a worksheet with the data before transforming it. Then I'd have
Excel open the created worksheet and have it do whatever I needed.

"RR" <te**********@yahoo.com> wrote in message
news:Oy******************@tornado.texas.rr.com...
Normally when I run a query, each record is displayed in a row, and the
colums contain the field titles.

Is there a way to switch this and have each record in a column, and the
names of the fields would be the rows?

This will need to be exported to excel. That part I understand, just not
changing the rows and columns around.

Thanks

Nov 13 '05 #5
RR
Thank you to both of you. Both of your answers were very helpful.
"Alan Webb" <kn*****@hotmail.com> wrote in message
news:E_********************@comcast.com...
RR,
Excel will paste/transform a range exactly as you ask. It's under the
Paste/Special dialogue. Since the data is headed to Excel anyway I'd
probably not bother with trying to get Access to do it. I'd have Access
output a worksheet with the data before transforming it. Then I'd have
Excel open the created worksheet and have it do whatever I needed.

"RR" <te**********@yahoo.com> wrote in message
news:Oy******************@tornado.texas.rr.com...
Normally when I run a query, each record is displayed in a row, and the
colums contain the field titles.

Is there a way to switch this and have each record in a column, and the
names of the fields would be the rows?

This will need to be exported to excel. That part I understand, just not changing the rows and columns around.

Thanks


Nov 13 '05 #6
RR
Actually using the function would be the prefered method, but whenever I try
to use it I get the 3190 too many fields defined error, no matter how small
the table is.

I'm using access 2002. Any guess why i am getting this error?
"Alan Lane" <aw*****@yahoo.com> wrote in message
news:EV*****************@twister.socal.rr.com...
Hi RR:

Here's a link to an article from the Microsoft Knowledge Base on exactly
your question. It gives 2 ways to accomplish your goal. I hope it helps.
It is for Access 97, but it should still work in later versions.

The article is named "How to Transpose Data in a Table or Query", it is
article Q182822. You can find it at the following url:

http://support.microsoft.com/default...b;en-us;182822

Good luck!

Alan

"RR" <te**********@yahoo.com> wrote in message
news:Oy******************@tornado.texas.rr.com...
Normally when I run a query, each record is displayed in a row, and the
colums contain the field titles.

Is there a way to switch this and have each record in a column, and the
names of the fields would be the rows?

This will need to be exported to excel. That part I understand, just not changing the rows and columns around.

Thanks


Nov 13 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1492
by: Peter Bailey | last post by:
I have a report that gives the classroom and then a list of students in it for a particular week. Thats fine if I want just one column with its associated rows of students. I have been asked...
3
2529
by: Diego TERCERO | last post by:
Hi... I'm working on a tool for editing text resources for a family of software product my company produces. These text resources are found in a SQL Server database, in a table called...
2
6374
by: CSL | last post by:
I am using the DataGrid in a Windows Application, how can I adjust the widths of each column individually.
4
4707
by: Mortar | last post by:
i need a datagrid with 2 header columns. The top one might have 1 column spanning 5 columns of the header row below it. what is the best way to do this? Could i have 2 datatables...1 filling the...
4
5506
by: Hexman | last post by:
In my application I retrieve about 100 rows from an Access DB to perform a daily process. A sql query statement selects, joins, and orders the dataset. Now, out of the dataset, the user may need...
68
6747
by: Martin Joergensen | last post by:
Hi, I have some files which has the following content: 0 0 0 0 0 0 0 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 0 0 0 0 0 0 0
0
6170
by: sysmanint1 | last post by:
I am a total neophyte at Visual Basic but found the following post and reply from Clint concerning a dynamic range. Also, have never "posted" to a discussion I have made a macro that works on...
7
14964
by: lethek39 | last post by:
Hey I have been trying to figure out how to sum rows and columns in a matrix square. I also have been trying to get the program to list the numbers of the diagonal in the matrix. So far this is the...
0
1630
by: anureddy | last post by:
help me how to add datagridview columns to another table,using windowsapplications. and set the displaymember and value member datagridviewcomboboxcolumn. i used this below code but that not...
0
2315
by: Radu | last post by:
Hi. I'm trying to read the structure of some Excel 2000 file that the user is expected to upload. The file must be an excel file (solved) and it must contain a column named "PIN". That's all. Now...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7321
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7036
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7489
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5624
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5047
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1547
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.