PC Review


Reply
Thread Tools Rate Thread

Connection to MDA file

 
 
Michael Henry
Guest
Posts: n/a
 
      29th Jun 2004
Hello,
I have created an mda file used as a source for common
code for other mdb files. In the mdb files I use
connection strings to query local tables. However, in
the mda file there are tables that will also be used by
other mdb files. The problem that I am running into is
this. Within the mda file I try to set a
connectionstring back to that file but when I reach the
code that does this ie.
Set cnnCost = New ADODB.Connection
cnnCost.ConnectionString
= "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data
Source=H:\MSAccessDbSecurity\LIBRARY\SearchTools_Library.m
da; " & _
"User ID=" & CurrentUser & ";" & _
"Jet OLEDB: System Database
=H:\MSAccessDbSecurity\SacSecure.mdw;" & _
"Mode=Share Deny None;"
cnnCost.Open

I get the following error when I try to open the cnnCost
connection "Run-time error -2147217843(80040e4d). Cannot
start your application. The workgroup information file is
missing or opened exclusively by another user."

Can anyone give me some ideas about what to check for?

thanks Mike Henry

 
Reply With Quote
 
 
 
 
Nick Coe \(UK\)
Guest
Posts: n/a
 
      29th Jun 2004
I'm not wholly sure I read your post correctly. I think you
need to use the CodeProject property to set the connection
back into your MDA where the code is executing.

Set cnnCost = CodeProject.Connection

--
Nick Coe (UK)
www.alphacos.co.uk

---

"Michael Henry" <(E-Mail Removed)> wrote
in message news:229b301c45e0d$da2d8aa0$(E-Mail Removed)...
> Hello,
> I have created an mda file used as a source for common
> code for other mdb files. In the mdb files I use
> connection strings to query local tables. However, in
> the mda file there are tables that will also be used by
> other mdb files. The problem that I am running into is
> this. Within the mda file I try to set a
> connectionstring back to that file but when I reach the
> code that does this ie.
> Set cnnCost = New ADODB.Connection
> cnnCost.ConnectionString
> = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
> "Data
> Source=H:\MSAccessDbSecurity\LIBRARY\SearchTools_Library.m
> da; " & _
> "User ID=" & CurrentUser & ";" & _
> "Jet OLEDB: System Database
> =H:\MSAccessDbSecurity\SacSecure.mdw;" & _
> "Mode=Share Deny None;"
> cnnCost.Open
>
> I get the following error when I try to open the cnnCost
> connection "Run-time error -2147217843(80040e4d). Cannot
> start your application. The workgroup information file is
> missing or opened exclusively by another user."
>
> Can anyone give me some ideas about what to check for?
>
> thanks Mike Henry
>



 
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
invalid connection file on remote desktop connection Kaheer Windows Vista General Discussion 1 19th Dec 2008 10:47 AM
Connection to several connection string from the app.config file SFM Microsoft C# .NET 0 22nd Nov 2006 10:26 PM
file access error on SQLCE database file after closing connection Dexlex Microsoft Dot NET Compact Framework 1 21st Jul 2006 06:15 AM
ADP File Connection =?Utf-8?B?U2NvdHQ=?= Microsoft Access VBA Modules 0 6th Dec 2005 11:51 PM
how to stop a dialup connection disconnecting every time to logout or switch user on windows xp when the connection is a shared connection =?Utf-8?B?Q3J1bQ==?= Windows XP New Users 1 12th Jan 2004 02:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:16 PM.