LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 134
Default Excel VB to open Access DB

When opening from another code, it is regardless an object. It would be
wise to assign this object to an object variable declared as an Access
application.

The AutoExec will not run automatically when the DB is opened by another
code. However, you can specifically state it to run after opening up the
DB. Reference point for this statement is the following:

http://www.vb123.com/toolshed/05_map/ch04_autoexec.htm

Look under the sub heading of "How I've used AutoExec Macros" on the very
last line with the Note.


It's just like within Excel, when a workbook is opened from within code,
while the Open Event on the workbook will run automatically provided the
EnableEvents on the Application object is set to True, the private sub of
"Auto_Open" within a standard module will not run automatically within Excel
when the workbook is opened via code. In that case, there would have to be
a public sub setup within the same module as the "Auto_Open" private sub to
run the private sub procedure, and the code opening up that workbook would
then have to run the public sub via the Application.Run method.

--
Thanks,

Ronald R. Dodge, Jr.
Production Statistician
Master MOUS 2000
"Cangioli" wrote in message
...
I'm attempting to get my Excel VB code to open an Access Database.
Everything I try wants to use Access as an object in Excel. I just want
it
to open it. Here's some background.
Excel code is creating data and saving an .xls file I use as an import
into
my Access DB. My DB has an AutoExec command to manipulate and distribute.
I
want the Excel VB to Open the Access DB after it creates my .xls.
Any help is appreciated. Thanks.



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
open access from excel ? יריב החביב Excel Discussion (Misc queries) 2 July 21st 08 01:49 PM
Open Access from Excel Daniel Bonallack Excel Programming 9 July 13th 06 09:05 AM
help to open pwd Excel from Access Ed Excel Programming 1 June 30th 04 01:56 PM
Open Excel from access John[_46_] Excel Programming 4 September 8th 03 05:44 PM


All times are GMT +1. The time now is 08:56 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"