Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

MDB's with Visual Basic

Posted on 1998-12-18
6
Medium Priority
?
424 Views
Last Modified: 2013-12-25
I am running an app over a 2 computer network; when the client computer runs the app over a mapped drive I get the following:
"Run-time error '3051'; The microsoft Jet database engine cannot open the file (drive\folder\mdb).  It is already opened exclusively by another user, or you need permission to view its data."  
The app is not running, the mdb is not open, and there are no permissions on the mdb.  Help?
0
Comment
Question by:ZenMaster
6 Comments
 
LVL 1

Expert Comment

by:mukvij
ID: 1498395
I did same thing with my setup and it worked for me. This error generally comes when MDB file if open in design mode. double check that. Also check permissions on disk share for your login. Does that help.
0
 
LVL 1

Author Comment

by:ZenMaster
ID: 1498396
MDB is not open in design mode; I using W95 for my mini-network; there are no permissions on the shares.
0
 
LVL 3

Expert Comment

by:jjmartin
ID: 1498397
This is a stumper, generally you get a message like that when the DB is open.  How are you accessing this MDB?  Are you opening it through code, or using a data control.  Perhaps you are inadvertantly trying to open the DB twice somewhere in the code?

Also, does this problem only accur when accessing the DB over the network. Try pointing to a duplicate DB on your local drive just to see if you get the same error.  Then we can rule out any network problems.
0
Industry Leaders: 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 2

Accepted Solution

by:
majed100598 earned 600 total points
ID: 1498398
I thing the problem is with user permission when you make a map drive , try to check the user privellages
0
 
LVL 1

Author Comment

by:ZenMaster
ID: 1498399
I need a clarification from majed:  I am using W95 in a peer-to-peer type system, I don't believe there are permissions on such connections outside of the read-only or full rights options on the shares.  I know these are set to full access.  Is there something I am missing?
0
 
LVL 1

Author Comment

by:ZenMaster
ID: 1498400
It's kind of embarassing to admit, but the user got in and changed the share on the drive on the 'server'; changed that and the problem was fixed.
0

Featured Post

Industry Leaders: 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!

Question has a verified solution.

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

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
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 Month11 days, 10 hours left to enroll

916 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