Solved

Formatting an Access table using an SQL statement

Posted on 2011-09-30
11
212 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:submarinerssbn731
  • 7
  • 4
11 Comments
 

Author Comment

by:submarinerssbn731
ID: 36893939
0
 
LVL 18

Expert Comment

by:Richard Daneke
ID: 36893941
There may be.   But, there is not spreadsheet attached.
0
 

Author Comment

by:submarinerssbn731
ID: 36893945
0
 

Author Comment

by:submarinerssbn731
ID: 36893947
Sorry about that  they are posted now.
0
 
LVL 18

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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

Author Comment

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

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 18

Accepted Solution

by:
Richard Daneke earned 500 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:submarinerssbn731
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:submarinerssbn731
ID: 36894323
It works great!!! You did a great job!!! Thanks alot!!!
0
 

Author Closing Comment

by:submarinerssbn731
ID: 36894325
Great job!
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

910 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

20 Experts available now in Live!

Get 1:1 Help Now