473,387 Members | 1,621 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Export Access Query to a formatted Excel sheet

11
I have an access report based on a bunch of queries that does a quarterly summary of some research related stats. Now my boss wants this report to export into excel based on a specific format she has developed. This formatted excel sheet also needs to keep all previous quarters information stored in it and just add subsequent quarters. I don't know where to start!
Jul 23 '08 #1
2 5306
Stewart Ross
2,545 Expert Mod 2GB
Hi. You may get some ideas of how to open and write to Excel by having a look at post 6 of this thread, which shows two VBA subroutines replacing the TransferSpreadsheet method to output to an existing Excel workbook instead of a new blank workbook.

In your case you are almost certain to have to write record values directly to Excel rather than outputting the whole recordset as shown in the above thread. You would need to learn how to refer to individual cells in Excel using the current active worksheet and the Cells method. Another thread shows examples of this and is linked here.

As you wish to retain previous worksheets it also means copying and pasting worksheets within the workbook. All this is easy enough once you understand the Excel object model; I'd suggest, though, that the development task is likely to take a bit longer than your boss thinks it will whilst you get to this stage!

-Stewart
Jul 24 '08 #2
ezra
11
Thanks. I'll check these post out and see what happens.

Hi. You may get some ideas of how to open and write to Excel by having a look at post 6 of this thread, which shows two VBA subroutines replacing the TransferSpreadsheet method to output to an existing Excel workbook instead of a new blank workbook.

In your case you are almost certain to have to write record values directly to Excel rather than outputting the whole recordset as shown in the above thread. You would need to learn how to refer to individual cells in Excel using the current active worksheet and the Cells method. Another thread shows examples of this and is linked here.

As you wish to retain previous worksheets it also means copying and pasting worksheets within the workbook. All this is easy enough once you understand the Excel object model; I'd suggest, though, that the development task is likely to take a bit longer than your boss thinks it will whilst you get to this stage!

-Stewart
Jul 24 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Keon | last post by:
Hoi, I'm using a database with alot of records in 1 table (more than 3000). If i want to export this table to excel i only get it till record 2385. Do someone know how i can solve this...
3
by: sam | last post by:
Can you teach me how to export access file to excel file in VB.net? Thank in advance.
5
by: Simon | last post by:
Dear reader, With the export command you can export a query to Excel. By activate this command a form pop's up with the following text:
3
by: austin1539 | last post by:
I am trying to run an Access query from Excel. The query, called "ProdActs1" works in Access and is run from using information from a table called "Queries". When a button is clicked in Excel, data...
3
by: Remaniak | last post by:
Hi All, I use the code below in my form to filter data. But I also need to export the data to excel. So I'd like to create a temporary query based on the strWhere and export that query to excel....
1
by: CoolFactor | last post by:
MY CODE IS NEAR THE BOTTOM I want to export this Access query into Excel using a command button on an Access form in the following way I describe below. Below you will find the simple query I am...
2
by: Comandur | last post by:
Hi, I am trying to export an access query to excel. I have made use of transferspreadsheet command to achive this. However i have hardcoded the path and the filename in the VBA code. I am not sure...
6
by: gmujjain4902 | last post by:
Hi, Please help me with code for to Export HTML table to Excel sheet using javascript without using ActiveX controls... The problem is i could get solution for my problem via ActiveX control...
2
by: Amin Bardai | last post by:
How about this: I want to export results of an MS-Access query into an existing XLS template using TransferSpreadsheet method? I can create a new XLS file but I just want to append records from...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.