Solved

reading .mdb file with VB6

Posted on 1999-01-03
3
1,483 Views
Last Modified: 2008-03-03
How can I read a .mdb file with VB6. All permissions are set to default except the password. I can read it fine if I remove the password, but as soon as I add a password, My VB app can't access it anymore. Any ideas??
Albert
0
Comment
Question by:ahammar
3 Comments
 
LVL 23

Author Comment

by:ahammar
ID: 1972498
Edited text of question
0
 
LVL 7

Expert Comment

by:smilitaru
ID: 1972499
If you refer at user password you can set the default user and default password for opening workspace (see more on SystemDB property in help or Books online). If you refer at database password, I'm sorry but once I digged for that with no success.
0
 
LVL 1

Accepted Solution

by:
wdavidsmith earned 100 total points
ID: 1972500
For users to gain access to the secured objects in your database, DAO must have the location of this workgroup information file. The location can be identified to DAO either by specifying it in the Windows Registry or by setting the SystemDB property.

DBEngine.SystemDB = "c:\windows\system\system.mdw"

Dim dbsTheDatabase As Database
Set dbsTheDatabase = OpenDatabase("c:\folder\database.mdb")

For this option to have any effect, you must set the SystemDB property before your application initializes the DBEngine object (that is, before creating an instance of any other DAO object). The scope of this setting is limited to your application and can't be changed without restarting your application.

0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
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…

708 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

16 Experts available now in Live!

Get 1:1 Help Now