PC Review


Reply
Thread Tools Rate Thread

ADO Connection question

 
 
Jon Lewis
Guest
Posts: n/a
 
      2nd Nov 2007
How do I reference an existing Connection to an external database

I'm using OpenSchema from a FE to see who's connected to a shared Access BE

Dim cnn As New ADODB.Connection
cnn.Provider = "Microsoft.ACE.OLEDB.12.0" 'both FE & BE are A2K7 but same
problem occurs with A2K*
cnn.Properties("Jet OLEDBatabase Password") = InputBox("Please enter the
data source password if applicable or leave blank.", "User Roster Utility")
cnn.Open "Data Source='" & strDataSource & "'" 'strDataSource comes from the
..Connect property of a linked table

This however creates an additional Connection to the one that already exists
so I get me (as the user) listed twice in the User Roster

If the table wasn't linked I could use CurrentProject.Connection to use the
existing Connection. How can I get the existing Connection to the BE so I
don't have to create a new one?

TIA


 
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
VPN connection question John Windows XP Work Remotely 0 5th Dec 2007 08:50 PM
Internet connection share/view wireless connection question Jim Marshall Windows XP Networking 3 12th Feb 2006 10:09 PM
Internet Connection Sharing and Internet Connection Firewall question Gary Windows XP Networking 2 6th Nov 2003 12:37 AM
Internet Connection Sharing and Internet Connection Firewall question Gary Windows XP Embedded 3 4th Nov 2003 04:16 PM
Internet Connection Sharing and Internet Connection Firewall question Gary Windows XP Security 0 3rd Nov 2003 11:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:26 AM.