Improve company productivity with a Business Account.Sign Up

x
?
Solved

Formatting an Access table using an SQL statement

Posted on 2011-09-30
11
Medium Priority
?
260 Views
Last Modified: 2012-08-13
Attached to this question are 2 Excel spread sheets.  The first spread sheet is the result of a SQL query that pulls out our yearly projected budget items.  This Excel sheet is called Total Budget Summary.  The second Excel sheet is the same data but my boss has reformatted it to reflect the various account codes that make up different pieces of our business.  This Excel spread sheet is called Total Budget Summary Reformatted.  Is there a way to write a query that will produce the reformatted spread sheet from the initial spread sheet of raw data?  Please advise.  Thanks
0
Comment
Question by:Steve Eckerman
  • 7
  • 4
11 Comments
 

Author Comment

by:Steve Eckerman
ID: 36893939
0
 
LVL 19

Expert Comment

by:Richard Daneke
ID: 36893941
There may be.   But, there is not spreadsheet attached.
0
Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

 

Author Comment

by:Steve Eckerman
ID: 36893947
Sorry about that  they are posted now.
0
 
LVL 19

Expert Comment

by:Richard Daneke
ID: 36894066
These are version 2003 or earlier (xls).   What version of products do you have installed?

One can create a table in Access to establish the print order of the cross tab query you have established.
Would you want to print it as a report from Access or export it as an Excel file?
0
 

Author Comment

by:Steve Eckerman
ID: 36894085
We are using Access and Excel 2003.  I would like to export it as an Excel file if possible.
0
 
LVL 19

Expert Comment

by:Richard Daneke
ID: 36894206
After importing the crosstab and the reformatted as tables, I made changes to the design of the reformatted table to be able to order a query to display your results.   This can be exported to Excel or used as the basis for a report in Access.   Subtotals can be inserted in Excel and grouping can be used in Access to establish the totals. Database1.mdb
0
 
LVL 19

Accepted Solution

by:
Richard Daneke earned 2000 total points
ID: 36894214
In your database, you can do this using the crosstab query as a source instead of the imported table.  This will save you a step.
0
 

Author Comment

by:Steve Eckerman
ID: 36894283
The query used to create the Total Budget Summary is a Select query.  Do I need to create a crosstab query and use the select query along with the ExcelOutPut query.  I am kind of new to this.
0
 

Author Comment

by:Steve Eckerman
ID: 36894323
It works great!!! You did a great job!!! Thanks alot!!!
0
 

Author Closing Comment

by:Steve Eckerman
ID: 36894325
Great job!
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

As a person who answers a lot of questions, I often see code that could be simplified, made easier to read, and perhaps most importantly made easier to maintain if the code was modified to use the Select Case statement. This article explains how to…
With the functions here, you can parse, convert, and format back and forth between feet and inches and fractions and decimal inches - for normal as well as extreme values and with extreme precision.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

606 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