473,385 Members | 1,693 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,385 software developers and data experts.

Multiple column headings

Hi every one, am very new here and a typical novice at access. I have a data set with like this:
Expand|Select|Wrap|Line Numbers
  1. ID    LDate      Result  Test
  2. m1    03-Aug-15    12    Potassium
  3. m1    19-Aug-15    15    Potassium
  4. m1    03-Aug-15    37    Urea
  5. m1    31-Aug-15    25    Urea
  6. m10   12-Aug-15    21    Potassium
  7. m10   28-Aug-15    15    Potassium
  8. m10   09-Sep-15    33    Potassium
  9. m10   12-Aug-15    46    Urea
  10. m10   09-Sep-15    25    Urea
  11. m11   13-Aug-15    22    Potassium
  12. m11   29-Aug-15    10    Potassium
  13. m11   10-Sep-15    34    Potassium
  14. m11   13-Aug-15    47    Urea
  15. m11   10-Sep-15    39    Urea
I would like to get a crosstab with something like this
Expand|Select|Wrap|Line Numbers
  1. ID    Potassium1    Potassium2    Potassium3    Urea1    Urea2    Urea3
  2. m1        12            15            37          25    
  3. m10       21            15            33          46       25
Any help is highy appreciated, I have tried to search but cant get it through.

Robert
Aug 24 '15 #1
2 1417
jimatqsi
1,271 Expert 1GB
When you create your cross-tab query, ID will be the row heading, Test will be the column heading and Result will be the Value.

You can do this quite easily with the query editor. The "trick", other than to know the above, is to right-click in the top half of the editor. When the context menu appears, choose Query Type and then in the submenu pick Crosstab Query. That will give you the appropriate prompts in the lower half of the query editor.

Jim
Aug 24 '15 #2
NeoPa
32,556 Expert Mod 16PB
Other than checking for earlier records, a process that would require two extra queries be run for each record in the input table, there is nothing in your data that identifies which record refers to #1, #2 or #3 of each of Potassium or Urea.

That makes what you want to do very complicated. Unless you have more info about how the data is related of course.

PS. If you can get Jim's suggestion to work for you then ignore this. I do very little with cross-tabs myself.
Aug 24 '15 #3

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

Similar topics

8
by: Donna Sabol | last post by:
First, I should start by saying I am creating a database to be used by some very impatient, non-computer literate people. It needs to be seameless in it's operation from their point of view. I...
1
by: Steve | last post by:
I have looked through the newsgroup for an answer to this but haven't been able to find anything resembling my situation. What I want to do is relatively simple, I think. I have a crosstab...
3
by: Paula | last post by:
I need to do a summary using a crosstab query. The data has a Date field (Not named "Date"). I can do the Row Heading and Value but am having trouble with the Column Heading. The summary Columns...
4
by: Jean | last post by:
Hello, can the following be done? I have a one-rowed query, with the following column headings and values: M-1 M-5 M-7 B-C-1 B-D-2 B-D-4 E-5 R-4 --- --- --- ----- ----- ----- ...
0
by: Daisy | last post by:
To make my column headings looks like the listviews, I've been doing: // Draw each column title e.Graphics.FillRectangle(new SolidBrush(SystemColors.Control), XPos, 0, cColumn.Width - 1,...
3
by: PeterZ | last post by:
Hi, In a running C# app with a datagrid control I select all rows in the dataGrid using CTRL-A, I then paste into some other app like notepad or Word but the column headings get left off. Is...
1
by: klapheck | last post by:
I have a subform based on a query, In design mode I have column headings in the form header. However it shows my information with the column headings with the table column names and does not show the...
5
by: stevepl7 | last post by:
I want to make the rows become column headings in an Access table or query. The data changes based on input to a form. It looks like this: A B N1 1 N2 2 N3 3 N4 4 Where A and...
4
by: nico3334 | last post by:
I'm not that familiar with arrays so I'll try to explain my problem as clear as possible. I have 2 text boxes in VB where users are basically allowed to choose a date range up to 12 months. The...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.