Solved

reading .mdb file with VB6

Posted on 1999-01-03
3
1,513 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Familiarize people with the process of utilizing SQL Server stored procedures 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 Micr…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

749 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