Solved

ADO Error

Posted on 2002-05-02
8
155 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 50

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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

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.
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 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…

821 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