PC Review


Reply
Thread Tools Rate Thread

Access from Excel ADODB.Connection

 
 
Pictou
Guest
Posts: n/a
 
      5th Aug 2008
I need to know how to specifiy that an ADODB connection is NOT exclusive
dim dbconn as ADODB.Connection
set dbconn = new connection
dbconn.open [connect string], [userid], [pwd], option?
I can not find documentation for options in help or whatever.
Is there an option to make sure this is not an exclusive connection.

I am having a problem with the following failing with a note that the
database is missing or opened as exclusive by someone else. I have the
ADODB.connection object and an ADOX.Catalog object open when the following
executes.

dim acc as Access.Application
set acc = new Access.Application
acc.OpenCurrentDatabase [database path], False, [pwd]
(False meaning not exclusive)

 
Reply With Quote
 
 
 
 
Pictou
Guest
Posts: n/a
 
      5th Aug 2008
I should add to the following that this bit of code works, but it does not
give me an Access.Application object to work with.

Dim db as Object
set db = acc.DBengine.OpenDatabase([file path], False, False, ";PWD=password")


"Pictou" wrote:

> I need to know how to specifiy that an ADODB connection is NOT exclusive
> dim dbconn as ADODB.Connection
> set dbconn = new connection
> dbconn.open [connect string], [userid], [pwd], option?
> I can not find documentation for options in help or whatever.
> Is there an option to make sure this is not an exclusive connection.
>
> I am having a problem with the following failing with a note that the
> database is missing or opened as exclusive by someone else. I have the
> ADODB.connection object and an ADOX.Catalog object open when the following
> executes.
>
> dim acc as Access.Application
> set acc = new Access.Application
> acc.OpenCurrentDatabase [database path], False, [pwd]
> (False meaning not exclusive)
>

 
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
excel ADODB.connection to itself ? how? djorkaef Microsoft Excel Programming 1 26th Jul 2010 03:07 PM
ADODB.Connection in Access 97 John Microsoft Access 2 1st Oct 2009 06:08 PM
share adodb connection in excel Marek Microsoft Excel Programming 3 7th Sep 2004 08:56 AM
ADODB Connection to Access Cindy Microsoft Excel Programming 1 27th Feb 2004 11:51 AM
Connection Problem with ADODB/Access DB Mohana Santhanam Microsoft ADO .NET 2 23rd Sep 2003 07:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:59 PM.