Solved

reading .mdb file with VB6

Posted on 1999-01-03
3
1,522 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

717 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