Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access 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 June 9th, 2009, 07:49 PM
Authorized User
 
Join Date: May 2009
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default interaction with excel macros

I have an application that begins with data entered into Excel. Several macros are run on the data and then it is brought into Access, where several queries are run to finally get the data where and how I want it.

It would be nice if one macro in Excel could call and run each of the excel macros and then run the Access queries,
OR
a single procedure in Access could call up and run the Excel macros and then the Access queries.

I do not know how to do that or which program does a better job of it. Anyone done this?
 
Old June 10th, 2009, 09:33 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

What are you trying to do with the data? Do you need to run the macros in Excel, or can Access do any of the processing of the data before it is queried? My preference is to pull the raw data from Excel and then do all the processing in Access.
__________________
mmcdonal

Look it up at: http://wrox.books24x7.com
 
Old June 10th, 2009, 11:22 AM
Authorized User
 
Join Date: May 2009
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I always prefer to use Access over Excel. But that is not an option in this case. I need to run several macros in Excel, then run a saved import in Access followed by an append query and then a final macro in Excel.

The first two macros in excel massage the data for various reasons, the final one in Excel moves specified records to a Archive tab.

Thus, I need to run events in each program, on after another, and want to make it easy for the user by tying them all into one button, preferable in Access.
 
Old June 11th, 2009, 01:04 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default

To make your life easier, I would follow MMcDonal's advice and do all processing in Access. The same macros that massage the data in Excel can be formulated in Access and probably with greater ease. Just bring in the raw data.
__________________
Greg Serrano
Michigan Dept. of Environmental Quality
Air Quality Division
 
Old June 11th, 2009, 01:10 PM
Authorized User
 
Join Date: May 2009
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default No option but to use excel for initial data

Again, I fully understand the advantages of using Access for all aspects of this. That is NOT an option. NOT.

I appreciate the attempt to give good advice, but I am hoping for a response to the question I asked.

Robert





Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel/Access interaction SarahDC Access VBA 0 September 24th, 2008 01:41 PM
Excel macros [email protected] Excel VBA 1 August 29th, 2007 10:50 PM
How to Run Excel Macros from ASP asptest Classic ASP Databases 7 September 13th, 2006 10:47 AM
Excel Macros with VBA kotaiah Excel VBA 1 September 11th, 2006 01:39 AM
Excel Macros with VBA ASAP kotaiah Excel VBA 0 September 9th, 2006 04:55 AM





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