Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access ASP
| Search | Today's Posts | Mark Forums Read
Access ASP Using ASP with Microsoft Access databases. For Access questions not specific to ASP, please use the Access forum. For more ASP forums, please see the ASP forum category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access ASP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 13th, 2008, 10:05 AM
Authorized User
Join Date: Jul 2004
Location: , , .
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Default generating excel files from access

I have a web site with an access database...I need to from the web site when a user clicks on a button generate the results of a query into and excel file that they can then download....I am not sure how to do this...can anyone help me with this?


Old February 18th, 2011, 10:26 PM
gjgriffith's Avatar
Wrox Author
Points: 517, Level: 8
Points: 517, Level: 8 Points: 517, Level: 8 Points: 517, Level: 8
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jul 2009
Location: Boulder, CO
Posts: 110
Thanks: 5
Thanked 14 Times in 14 Posts
Default generating excel files from access

Hello elladi,

Thanks for the post here, I've noticed that it was very old, but no reply had been given and it had over 500 views, so I wanted to post the solution I could see!

VBA makes it very easy to create a spreadsheet using TransferSpreadsheet method, which is a member of the Access DoCmd object. Or, if you are feeling really savvy and want much more control, you can use the Excel Object Model to accomplish this task as well. Anyway, I hope that helps, but if you have other specific questions, please let me know.

Also, in case you want to do more learn about the subject of working with the different Office applications (Excel, Word, Outlook, etc...) from within Access VBA, I would recommend 2 Wrox books:

1. Access 2010 Programmers Reference - Chapter 18 - Working with Office 2010
2. Access 2007 VBA Programmer's Reference - Chapter 16 - Working with Office Applications

Anyway, I hope that is of some help at this point...I realize the age of this post!

Good Luck,

Geoffrey L. Griffith

Wrox Author of:
Access 2010 24-Hour Trainer
Access 2010 Programmer's Reference
Access 2007 VBA Programmer's Reference

Similar Threads
Thread Thread Starter Forum Replies Last Post
Generating Excel FIles from resource Files abinashpatra ASP.NET 1.0 and 1.1 Basics 0 July 28th, 2008 02:07 AM
Generating multiple HTML files dunpeal ASP.NET 1.0 and 1.1 Professional 6 August 24th, 2006 07:16 AM
Client Side JavaScript Generating HTML Files interrupt Javascript How-To 1 January 14th, 2005 11:36 AM
generating xml files from sql queries Thebravehearth XML 0 November 1st, 2004 11:41 PM
Generating Excel Reports athanatos ASP.NET 1.0 and 1.1 Basics 1 August 19th, 2003 01:53 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.