PC Review


Reply
Thread Tools Rate Thread

Can I do automation on Access if the database is open?

 
 
Mat N
Guest
Posts: n/a
 
      1st Oct 2010
I'm trying to write some code which will check to see what databases
are currently open. I've made some progress on this front with a
little help from the following links';
http://support.microsoft.com/kb/q183009/
http://www.oaltd.co.uk/Excel/Default.htm (look at the EnumDlg.xls)

Once I've found which databases are open I want to list out the
(queries and tables) they contain (or at least which ever one I select
assuming there is more than one database open).

I've been assuming I can use the GetObject() to create link to the
open database but I'm getting an error:

Run time error '-2147467259 (80004005)':
Microsoft office Access can't open the database because it is missing
or opened exclusively by another user.

I thought CreateObject would open the file not GetObject?

Is it not possible to list out the queries and tables of database that
is currently open?
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access automation leaves Excel open which in turn locks 2nd automation attempts EagleOne@discussions.microsoft.com Microsoft Access 8 30th Jun 2008 01:27 AM
Outlook automation from Access Database =?Utf-8?B?VG9tIEQu?= Microsoft Outlook VBA Programming 2 29th Sep 2004 03:09 PM
Automation from Flat Text File to Access Database Bob Microsoft Access VBA Modules 2 25th Jun 2004 01:24 PM
Access Automation for a secured database =?Utf-8?B?RWQgRG9saWtpYW4=?= Microsoft Access VBA Modules 0 12th Mar 2004 05:41 PM
Automation error and cannot open database. Jacqueline Microsoft Access VBA Modules 0 22nd Dec 2003 04:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:00 PM.