Find Code:
All Words
Any of the Words
Exact Phrase
Home
:
Code
:
Forums
:
Submit
:
Mailing List
:
About
:
Contact
Code
All
VB.NET
ASP.NET
C#
VB Classic
ASP Classic
Snippets
Popular
Resources
Submit Code
Forums
Articles
Tips
Links
Books
Contest
Link to us
This code shows how to set, open, and change a pas...
Author:
Peter Riley
E-mail:
Click to e-mail author
Submitted:
4/19/2000
Version:
VB3
Compatibility:
VB3, VB4, VB5
Category:
Databases
Views:
13140
This code shows how to set, open, and change a password in an Access database using DAO.
Declarations:
none
Code:
'Code for setting database password Dim db AS Database Set db = OpenDatabase("your_path",True) 'Set new password db.NewPassword "", "your_new_password" db.close ----------------------------------------------------- 'Code for opening a password protected database Dim db AS Database Set db = OpenDatabase("your_path",False,False, ";pwd=your_password") ----------------------------------------------------- 'Code for changing a database password Dim db AS Database Set db = OpenDatabase("your_path",True,False, ";pwd=your_password") db.NewPassword "old_password", "your_new_password" db.Close
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2024 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement