Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA 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 September 10th, 2004, 11:05 AM
Registered User
 
Join Date: Sep 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Exporting Query Data From Access to Excel

Here is my problem.

I have a table in Access that has mics. vendors information.
I want to create misc. Excel files based on the Vendor Name.

Anotherwords, I want to somehow read the table, and create an Excel file for each Vendor.

The only way I presently know how to do this would be to have one query with selection logic for each vendor.
IE: 500 vendors would take 500 queries.

I need one program to create the 500 Excel files....
Anyone that knows how to do this with Access commands, or Access VB would be greatly appreciated. I am no VB expert, but if someone has code, I can fake it...

Thanks,
Jim
 
Old September 10th, 2004, 09:48 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 128
Thanks: 0
Thanked 1 Time in 1 Post
Default

Jim,
I have a suggestion. Why not just instead of Excel file use
Word document? Have it as a mail merge from Access to Word.
John

 
Old December 20th, 2007, 07:57 PM
Authorized User
 
Join Date: Dec 2007
Posts: 26
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
quote:Originally posted by JimInSouthernCal
 Here is my problem.

I have a table in Access that has mics. vendors information.
I want to create misc. Excel files based on the Vendor Name.

Anotherwords, I want to somehow read the table, and create an Excel file for each Vendor.

The only way I presently know how to do this would be to have one query with selection logic for each vendor.
IE: 500 vendors would take 500 queries.

I need one program to create the 500 Excel files....
Anyone that knows how to do this with Access commands, or Access VB would be greatly appreciated. I am no VB expert, but if someone has code, I can fake it...

Thanks,
Jim

Hi You got any answers, I need the same. Thanks

 
Old December 21st, 2007, 08:34 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

You want to create a single Excel file for each vendor record in your database? Yikes. That can be done, but you will need to code that. Are you still looking for this solution? How are you selecting each vendor? Can you post the table structure in Access, and then what you want to see in the Excel files? Also, what naming are you going to use on the Excel files?


mmcdonal

Look it up at: http://wrox.books24x7.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Exporting From Access To Excel jimnich Access VBA 17 February 8th, 2008 07:23 AM
Chapter 16: Exporting query data to Excel 5tr0ud BOOK: Access 2007 VBA Programmer's Reference ISBN: 978-0-470-04703-3 0 October 9th, 2007 04:23 PM
Exporting an Access Query sideshow245 Access ASP 3 June 18th, 2006 07:05 AM
Exporting data from MS Excel sheet to Ms Access ajindal General .NET 1 January 17th, 2005 03:00 AM
Exporting Query Results to Excel File redrobot5050 Access VBA 2 October 7th, 2004 05:26 PM





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