Cross Tab Query with no values

Posted on 2011-03-20
Last Modified: 2012-05-11
I have a table with 3 columns:

Name (type: Text)
Item Name (type: Text)
Due Date (type: Date)

How can I have a crosstab type query that has "Name" as the first column, "Due Date" as columns across the top, and "Item Name" triangulated at the intersection of "Name" and "Due Date".  I could not get this to work partially because there are no data fields.
Question by:legendtoo
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 35175623
Please post a sample of your table data.
Also post an example of the exact output you are expecting.

I am sure an Expert will be along shortly to help.


LVL 44

Accepted Solution

GRayL earned 250 total points
ID: 35176109
TRANSFORM First([Item Name])
FROM myTable
PIVOT [Due Date];
LVL 44

Expert Comment

ID: 35176115
I wonder why you did not think it necessary to include the table name ;-)  Of course you will substitute your actual table name for myTable.
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 35193635
Sorry....Table name is "Projects"

Name (type: Text)
Item Name (type: Text)
Due Date (type: Date)

Name   |      Item Name     |      Due Date
John          Project 1                9/1/11
Dave          Project 2               9/2/11
Sam           Project 3                9/5/11
John          Project 4                9/4/11


Name         |          9/1         |          9/2        |           9/3         |          9/4          |           9/5          |
John                 Project 1                                                           Project 4                
Dave                                        Project 2
Sam                                                                                                                      Project 3

Author Comment

ID: 35194611
Thanks GRayL !!!!  It works !!!

Now, can I Transform more than one field?  Would I replace "First" with "Second" ?  I tried it as an experiment but it failed so there must be another method to Transform more than one field.

Thanks Again!!!!
LVL 44

Expert Comment

ID: 35199353
This looks like a different question.  I don't know what you mean by - can I Transform more than one field? -  If you decide to post a new question, be sure to include an example of what you have - transformed into what you want to see.   Post a link to the new question back here.

Author Comment

ID: 35199933
Thanks....I posted a new question.
LVL 44

Expert Comment

ID: 35200248
Can you copy the address of the new question and paste it a comment back here.  I don't see it yet.

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

736 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question