Solved

Query reformat table, how to convert table contents to header field

Posted on 2014-12-08
1
117 Views
Last Modified: 2014-12-08
Dear all,

The title of my question might be confusing. I'm trying to convert the values in the Dates column to headers, populating its contents with the values data.   See below tables.  I won't know the contents of Dates, its type is Data/Time. Is this possible?


Output.png
Thanks
0
Comment
Question by:AndyC1000
1 Comment
 
LVL 39

Accepted Solution

by:
als315 earned 500 total points
ID: 40488181
You can use Crosstab query:
TRANSFORM Sum(Table1.Values) AS SumOfValues
SELECT Table1.Name
FROM Table1
GROUP BY Table1.Name
PIVOT Table1.Dates;

Open in new window

In designer:
crosstab
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

867 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now