[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How to unlock a access .mdb file?

Posted on 1997-10-13
5
Medium Priority
?
307 Views
Last Modified: 2010-05-18
Sometime when I use vb programming a access database, unexpectly,
my vb app shut down , then I can't access that .mdb
any more, it says some other app open the file exclusively
and lock it. how can I solve this problem and avoid this kind of thing happen again?
Thanks a lot.
0
Comment
Question by:xzhang
  • 3
  • 2
5 Comments
 
LVL 4

Accepted Solution

by:
ozphil earned 100 total points
ID: 1957111
Well your application was the one that had locked the database.

As a quick workaround, you could open the database in shared mode.

Bu am i stating the obvious. :)
0
 

Author Comment

by:xzhang
ID: 1957112
Can you tell me how to open database in share mode in vb
data control. Is it just a property to set,or I have to
use a function to open database.
Thanks.
0
 
LVL 4

Expert Comment

by:ozphil
ID: 1957113
Which version of Access are you using?
0
 

Author Comment

by:xzhang
ID: 1957114
It's version 7.0
0
 
LVL 4

Expert Comment

by:ozphil
ID: 1957115
There is a property 'exclusive' for the data control which you can set to False (multi-user) on loading form.






0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

834 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