Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Password, Access, Select statement
Message
 
À
15/06/2003 22:22:05
Information générale
Forum:
Visual Basic
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
Divers
Thread ID:
00800231
Message ID:
00801015
Vues:
18
Hi Erik,

Article "Migrating from DAO to ADO" posted http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndao/html/daotoadoupdate_topic4.asp?FRAME=true#daotoadoupdate_topic4c has several examples on opening Secured Microsoft Jet Databases [Password Protected Databases and Databases with User-Level Security].

Here is an axample for password protected database:

ADO

Sub ADOOpenDBPasswordDatabase()

Dim cnn As New ADODB.Connection

cnn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=.\NorthWind.mdb;" & _
"Jet OLEDB:Database Password=password;"
cnn.Close

End Sub

HTH, Igor
Igor Gelin
Database Developer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform