p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > Microsoft Office > Access and Access VBA > Access
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 9th, 2009, 08:49 PM
Authorized User
Points: 110, Level: 2
Points: 110, Level: 2 Points: 110, Level: 2 Points: 110, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2009
Posts: 22
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old June 10th, 2009, 10:33 AM
Friend of Wrox
Points: 9,516, Level: 42
Points: 9,516, Level: 42 Points: 9,516, Level: 42 Points: 9,516, Level: 42
Activity: 11%
Activity: 11% Activity: 11% Activity: 11%
 
Join Date: Mar 2004
Location: Washington, DC, USA.
Posts: 3,060
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old June 10th, 2009, 12:22 PM
Authorized User
Points: 110, Level: 2
Points: 110, Level: 2 Points: 110, Level: 2 Points: 110, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2009
Posts: 22
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #4 (permalink)  
Old June 11th, 2009, 02:04 PM
Friend of Wrox
Points: 3,645, Level: 25
Points: 3,645, Level: 25 Points: 3,645, Level: 25 Points: 3,645, Level: 25
Activity: 2%
Activity: 2% Activity: 2% Activity: 2%
 
Join Date: Jun 2003
Location: Lansing, Michigan, USA.
Posts: 1,114
Thanks: 2
Thanked 4 Times in 4 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #5 (permalink)  
Old June 11th, 2009, 02:10 PM
Authorized User
Points: 110, Level: 2
Points: 110, Level: 2 Points: 110, Level: 2 Points: 110, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2009
Posts: 22
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel/Access interaction SarahDC Access VBA 0 September 24th, 2008 02:41 PM
Excel macros mustafayildirim@msn.com Excel VBA 1 August 29th, 2007 11:50 PM
How to Run Excel Macros from ASP asptest Classic ASP Databases 7 September 13th, 2006 11:47 AM
Excel Macros with VBA kotaiah Excel VBA 1 September 11th, 2006 02:39 AM
Excel Macros with VBA ASAP kotaiah Excel VBA 0 September 9th, 2006 05:55 AM



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


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc