Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default about OLE automation

I have an excel spreadsheet thats linked to an access
table. I am using this table to create a form.
I am using the code below to open an access this form
(from excel) where there's a code for form_open event to
print report of the form. after i close everything excel
keeps running in the background. so the next time i open
the same excel file i see two VBA project (of the same
file) open. am i missing here something? i hope i am
making myself clear.

thanks for any help.


' Initialize string to database path.
Const strConPathToSamples = "C:\Documents and
Settings\vku\My Documents\"

strDB = strConPathToSamples & "Stock Cards.mdb"

' Create new instance of Microsoft Access.
Set appAccess = CreateObject("Access.Application")

' Open database in Microsoft Access window.
appAccess.OpenCurrentDatabase strDB

appAccess.visible = True
appAccess.WindowState = ppWindowMaximized

' Open Orders form.
appAccess.DoCmd.OpenForm "Stock Cards"
Reply
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
Automation Allenc Excel Worksheet Functions 5 January 13th 07 10:42 AM
Automation?? Help in automation Excel Discussion (Misc queries) 1 April 12th 06 02:10 PM
Automation Rupal Vaibhav Excel Programming 0 December 12th 03 03:47 PM
Automation [email protected] Excel Programming 0 December 12th 03 02:52 PM
OLE Automation Bob C. Excel Programming 1 December 9th 03 12:37 AM


All times are GMT +1. The time now is 07:24 PM.

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

About Us

"It's about Microsoft Excel"