?
Solved

ADO Error

Posted on 2002-05-02
8
Medium Priority
?
166 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 53

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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month7 days, 21 hours left to enroll

765 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