Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access ASP
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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?

thanks
Elladi

Reply With Quote
  #2 (permalink)  
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
http://www.ImagineThought.com

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 03:06 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.