Solved

ADO Error

Posted on 2002-05-02
8
153 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
8 Comments
 
LVL 49

Expert Comment

by:Ryan Chong
Comment Utility
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
Comment Utility
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
Comment Utility
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
 
LVL 3

Expert Comment

by:n_narayanan
Comment Utility
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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 3

Expert Comment

by:n_narayanan
Comment Utility
Ok, It is not fitting into one line
0
 
LVL 5

Expert Comment

by:bob_online
Comment Utility
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
Comment Utility
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
Comment Utility
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

772 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now