473,416 Members | 1,762 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

Manipulating Rows In Access query

41
I have a pre-written Access query and one of the resulting columns is listed in this format:

A
B
C
A
B
C
A
B

How can I modify my query to show the results in that colums in this format:


A B C
A B C
A B

Please let me know if this is too abstract, but I just need some idea of how to change the sorting or crosstab queries. Thanks in advance!
Oct 12 '07 #1
3 1654
puppydogbuddy
1,923 Expert 1GB
I have a pre-written Access query and one of the resulting columns is listed in this format:

A
B
C
A
B
C
A
B

How can I modify my query to show the results in that colums in this format:


A B C
A B C
A B

Please let me know if this is too abstract, but I just need some idea of how to change the sorting or crosstab queries. Thanks in advance!

You can use your saved query as the data source for a crosstab query. The easiest way to generate a crosstab query is to go to the query object window in the Access DB Window, click "New", and select the crosstab query wizard.

In response to the wizard prompts, enter the following:

Data Source: Your saved query
Column Header: the column with the abc's in the example you gave.
Value Column: the column containing the values that you want to output.
Row Header: All the remaining columns.

Run your crosstab,
Oct 12 '07 #2
cloh
41
I've tried using the crosstab query.. but it takes a really long time to run and more often than not I get an error message that says something like "snapshot is too old".

I know the crosstab query should work in theory because I've seen other queries in a similar format... does anyone have any idea on how to speed the query up? I've looked online, but other than telling me to specify the column headings (which I have done) there doesn't seem to be much else I can do.
Oct 15 '07 #3
puppydogbuddy
1,923 Expert 1GB
I've tried using the crosstab query.. but it takes a really long time to run and more often than not I get an error message that says something like "snapshot is too old".

I know the crosstab query should work in theory because I've seen other queries in a similar format... does anyone have any idea on how to speed the query up? I've looked online, but other than telling me to specify the column headings (which I have done) there doesn't seem to be much else I can do.
cloh,
The snapshot too old error appears to be an error generated from the Oracle compiler. Are you running an Oracle back end server with Access front ends? If so why didn't you disclose this information? you need to seek help in an Oracle forum to address the snapshot too old error before addressing anything else.
Oct 15 '07 #4

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

Similar topics

6
by: Martin | last post by:
Dear Access-Guru's I am far from being an access specialist and i have the following problem. I've got an access table with individual rows and rows with subtotals. The thing is that the rows...
4
by: Laura | last post by:
Here's the situation: I'm trying to use an update query to copy data from one row to another. Here is the situation: I have 5 companies that are linked to each other. I need to show all 5...
13
by: Dixie | last post by:
How do I, in VBA from an access form module, add 5 rows to the top of a spreadsheet called MySpreadsheet.xls. The worksheet is called MyWorksheet and there is already data in the first 5 rows. I...
1
by: Barb Alderton | last post by:
I am working with SharePoint 2003. I am using an existing webpart as a child control (server control). I need to access/manipulate the HTML that the control outputs prior to rendering it to the...
4
by: Chris Tremblay | last post by:
I am trying to figure out how to go about retrieving the number of results returned from my queries in SQL server from VB.NET without using a the Select Count(*) query. The method that I was using...
4
by: dallasfreeman | last post by:
I'm looking at a quick way to get results that are displayed as rows to display as columns. I have three tables:- - The Questions for the survey - The Results of the survey (Columns are listed...
3
by: John | last post by:
Hi I have two data adapters bound to two separate tables. How can I; 1. Loop through all records one by one in one of them while reading column values, and 2. Insert a record from data...
7
by: fcolon75 | last post by:
I'm an experienced Access user, but very new to coding VBA in Access. I'd like to do the following: 1) Develop a basic query in the query designer. 2) Call that query from a VBA script 3)...
2
by: Skeleton Man | last post by:
Hi, I'm attempting to fetch all the data from an MS Access database, but every time I try with any query it only returns every second row.. I could rows numbered from 1 to 4000 and it would...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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
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...
0
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,...
0
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...
0
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
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
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,...
0
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...

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.