Solved

ADO Error

Posted on 2002-05-02
8
162 Views
Last Modified: 2010-05-02
i am having problem while try to open Access 2000 database which is having password through ADO.


error:
   cannot start your application. workgroup information file is missing  or opened exclusively by another user.

Connectin String:
     Con.Open "Provider=Microsoft.Jet.OLEDB.3.51;Password=te;Persist Security Info=True;Data Source=\\Maxnt\d\Test\test.mdb"

   if any knows the solution for this pls send me.  I want to open database through connection string only. I dont want to create DSN.

   Thanks



0
Comment
Question by:azhaguraj
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 52

Expert Comment

by:Ryan Chong
ID: 6985391
Make sure your database is not open exclusively > Close any form in Design Mode, see if the problem remain..
0
 
LVL 43

Expert Comment

by:TimCottee
ID: 6985460
You are using the wrong password syntax, it should be:

Con.Open "Provider=Microsoft.Jet.OLEDB.3.51;Jet OLEDB:Database Password=te;Persist Security Info=True;Data Source=\\Maxnt\d\Test\test.mdb"

The Password parameter is for a user name/password combination whereas the database password requires the "Jet OLEDB:Database Password=" parameter in the connection string.
0
 
LVL 3

Expert Comment

by:n_narayanan
ID: 6985496
Dont use 3.51 Jet use 4.0

Since 3.51 cannot open the AccessDatabase 2000.

And also your password syntax is wrong as mentioned by TimCattee

use the below code

Con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Jet OLEDB:Database Password=te;Persist Security Info=True;Data
Source=\\Maxnt\d\Test\test.mdb"

Cheers

Narayanan
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 3

Expert Comment

by:n_narayanan
ID: 6985499
Sorry the line was broken

Con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Jet OLEDB:Database Password=te;Persist Security Info=True;Data Source=\\Maxnt\d\Test\test.mdb"
0
 
LVL 3

Expert Comment

by:n_narayanan
ID: 6985502
Ok, It is not fitting into one line
0
 
LVL 5

Expert Comment

by:bob_online
ID: 6986064
I don't have the answer, but if the ones already posted don't work, maybe someone can help you with this idea:

Your error message specifies the "workgroup information file".  If you have implemented database security, you have created a custom .mdw file (at least that was the extension in Access97).  The .mdw file holds users, groups, passwords, and permissions.  In order to open the database in Access, you have to either use the wrkgpadm program to permanently join the workgroup (until you join another) or start access with a command line parameter indicating which workgroup to temporarily join.  You can only be in one workgroup at a time.

To test if this is the problem, on the machine you're running your program on, use the access wrkgpadm program (in the windows\system directory) to "join" the workgroup for this database.  This sets something in the registry to indicate the workgroup.  If your program now connects, this is your problem.  

I do not know how to pass the workgroup parameter through an ado connection string.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7698724
Hi azhaguraj,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Save as PAQ -- No Refund.

azhaguraj, Please DO NOT accept this comment as an answer.
EXPERTS: Post a comment if you are certain that an expert deserves credit.  Explain why.
==========
DanRollins -- EE database cleanup volunteer
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 7755557
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

687 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question