Ragazzi, c'è un modo di proteggere un database, creato con access e utilizzato da VB6, con password? :master:
Ragazzi, c'è un modo di proteggere un database, creato con access e utilizzato da VB6, con password? :master:
si. nel menu strumenti c'è la voce protezione.
poi da vb6 devi aprirlo indicando la password nella stringa di connessione
Scusate i puntini di sospensione...... La verità è che non ho argomenti....
quindi nel codice di connessione devo aggiungere i dati della Password...
in che punto?codice:'Connessioni per le coperture in legno Dim strConnect As String Dim strProvider As String Dim strDataSource As String Dim strDataBaseName As String strProvider = "Provider= Microsoft.Jet.OLEDB.4.0;" strDataSource = App.Path strDataBaseName = "\DB.mdb" strDataSource = "Data Source=" & strDataSource & strDataBaseName strConnect = strProvider & strDataSource ConnDB.CursorLocation = adUseClient ConnDB.Open strConnect![]()
devo aggiungere un "dim strPassword as String" e un "strPassword="password""...ma poi?
basta aggiungere "password=tuapassword" nella stringa di connessione, un po' come hai fatto nelle altre......
Scusate i puntini di sospensione...... La verità è che non ho argomenti....
Esatto, trovato:
grazie ancora! gentilissimo!codice:'Connessioni per le coperture in legno Dim strConnect As String Dim strProvider As String Dim strDataSource As String Dim strDataBaseName As String Dim strPassword strProvider = "Provider= Microsoft.Jet.OLEDB.4.0;" strDataSource = App.Path strDataBaseName = "\DB.mdb;" strPassword = "Jet OLEDB:Database Password=DATABASE" strDataSource = "Data Source=" & strDataSource & strDataBaseName & strPassword strConnect = strProvider & strDataSource ConnDB.CursorLocation = adUseClient ConnDB.Open strConnect