?
Solved

Cross Tab Query with no values

Posted on 2011-03-20
8
Medium Priority
?
303 Views
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.
0
Comment
Question by:legendtoo
  • 4
  • 3
8 Comments
 
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.

;-)

JeffCoachman
0
 
LVL 44

Accepted Solution

by:
GRayL earned 1000 total points
ID: 35176109
TRANSFORM First([Item Name])
SELECT [Name]
FROM myTable
GROUP BY [Name]
PIVOT [Due Date];
0
 
LVL 44

Expert Comment

by:GRayL
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.
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

Author Comment

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

Fields:
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

Output:

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

Author Comment

by:legendtoo
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!!!!
0
 
LVL 44

Expert Comment

by:GRayL
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.
0
 

Author Comment

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

Expert Comment

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

Featured Post

Independent Software Vendors: 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!

Question has a verified solution.

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

We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
If you’re using QODBC to update QuickBooks data from Microsoft® Access but Access is not showing the updated data, you could have set up QODBC incorrectly.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

850 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