How To Open an Access Database with User Security (163002)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
This article was previously published under Q163002 SUMMARY
This article demonstrates how to open and view the contents of a secured
Access database using Visual Basic. The steps below outline this process:
- Secure the database: From Microsoft Access, set the appropriate user and
group permissions to secure the database. For more information about
securing a Microsoft Access database, see the REFERENCES section later
in this article.
- In your Visual Basic code, indicate where system database, system.mdw,
is located. You can either set the SystemDB property of the DBEngine
object or set the IniPath property to the registry location of the
system database. For example:
DbEngine.SystemDB="C:\MyApplication\system.mdw"
- Open the database.
Note that opening a secured Access database is different from opening a
database that is secured with the Microsoft Access user-level security
feature.
REFERENCES
Chapter 14 - Securing and Delivering Your Application, Building
Applications with Microsoft Access for Windows 95.
Visual Basic Online Help - search on IniPath property, and then select the
topic: DBEngine IniPath Now Uses Registry Entry (ReadMe)
For additional information, please see the following article in the
Microsoft Knowledge Base:
161016
: INF: Using DAO to Open Password-Protected Database (7.0/97)
Modification Type: | Minor | Last Reviewed: | 7/1/2004 |
---|
Keywords: | kbhowto KB163002 |
---|
|