Solved

ADO Error

Posted on 2002-05-02
8
156 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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Suggested Solutions

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
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…

791 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