473,803 Members | 2,807 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can query return result in vertically instead of horizontally?

48 New Member
Using Access 2000, normally query returns result horizontally. Is there any way to set the query to return result vertically?

For example, my query shown the result as below:
[HTML]
Heading below 70 70-74 75-79 80-84 85 and above
Value returned 128 54 137 190 294[/HTML]


Is there any way to show the result as below?

[PHP]
Heading Value returned
Below 70 128
70-74 54
75-79 137
80-84 190
85 and above 294[/PHP]

Thank you
Jun 27 '08 #1
2 3408
Stewart Ross
2,545 Recognized Expert Moderator Specialist
Short answer to this one is no. What you are seeking is a kind of inverse pivot where the field names become the left-most row elements, and the field values (the query rows) become the remaining elements on each row. Can't be done directly in Access (at least not without bespoke programming in VBA).

However, it is straightforward in Excel to achieve the effect you require by setting up two worksheets, one holding the normal tabular view of the data and the other a custom view using cell references referring A2 to table B1, A3 to table C1 and so on.

-Stewart
Jun 27 '08 #2
HowHow
48 New Member
I see...thank you for your time :)
Jun 27 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

20
10168
by: | last post by:
If I need to check if a certain value does exist in a field, and return either "yes" or "not" which query would be the most effestive?
27
9258
by: FL | last post by:
Hi Everyone, I know howto center a block using margin-left: auto ; margin-right: auto ; but I'm trying to center vertically a box, any idea to solve this?
6
2076
by: B Love | last post by:
I am wondering if I can have a dynamically generated report based upon the results of a query (in Access2000). Any ideas? Related to that (if that cannot be done) can the output of a query generate a set of records in form view. ( The second request sounds even more impossible to the first!) . Thanks for any insight you can share with me! ~Bruce
4
4455
by: Tmuld | last post by:
Hello, I have a page that needs to only show 1 record at a time - but there are many fields - I want to display it vertically instead of hornizonatlly. The headers will run vertically as well. Sort of like this
5
2861
by: shanti.miller | last post by:
I've got a grid that uses paging and displays a maximum of 10 records at a time. Sometimes the fields have a lot of data in them and the datagrid takes up way too much horizontal space. I've tried setting the height and it doesn't do anything. I can set the width to some very large number like 3000px and that works ok, but it's a waste when the data doesn't require that much space. Is there a way to limit the height of the grid or of...
2
4710
by: sachjn | last post by:
Hi, I need to have a table along with other UI items in page which resizes horizontally and vertically with the browser window. That means table should accoupy the remaining available space in the browser window and should display horizontal and vertical scroll bars if content of table is more than available width & height. I can do similer to this by enclosing table in a <DIV> with style as : overflow:auto; height:200px etc. But things...
1
2214
by: AimeeRae | last post by:
I need to create a report based off the following table (column headings): Station/Date/TransType/Offer1/Offer2 Station can be either: (KTTB or WOA) Date is variable TransType can be either: (Inquiry, lead or new order) Offer 1 is a number Offer 2 is a number
13
2559
by: Karl Groves | last post by:
I'm missing something very obvious, but it is getting late and I've stared at it too long. TIA for responses I am writing a basic function (listed at the bottom of this post) that returns data from a query into an array. The intent is that the following code:
2
1886
by: ghjk | last post by:
I'm developing web based system using php and mysql. In there I want to drag and drop information horizontally and vertically. How can I do that? It is a table like below. ex: monday tuesday wednesday 9.00am Allocated Available Available 10.00am Available Requested Allocated 11.00am Available Available Available
0
9703
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9565
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10550
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10317
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
6844
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5501
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5633
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3799
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2972
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.