Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2014-12-08
1
Medium Priority
?
158 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 40

Accepted Solution

by:
als315 earned 2000 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

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

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

Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
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.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

772 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