πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: free.it.visual-basic
Article #1690

connessione a mdb access 2000 con password

#1690
From: Sax
Date: Sat, 06 Mar 2004 15:59
19 lines
1620 bytes
Di seguito vi mostro come ho fatto la connessione al db access 2000:

Dim cnndb As New ADODB.Connection
Dim rstdb As New ADODB.Recordset
Dim strconnect As String
Dim strsql As String

strconnect = App.Path & "\Database.mdb"
cnndb.Provider = "Microsoft.jet.oledb.4.0"
cnndb.Open strconnect

Fin qui tutto, funziona benissimo!
Ma se ora vado a proteggere con password il mio db, a codice metto:
cnndb.Open strconnect, ,"PASSWORD"

ma invece non me lo prende perchοΏ½ dice che non trova il file d'informazioni
sulla protezione.
Come gliela devo passare la password?
Grazie a tutti per l'ascolto
Technical Details
Message-ID: <2Am2c.7404$O31.315541@news4.tin.it>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!irazu.switch.ch!switch.ch!newsfeed.nextoneserver.com!news-out.tin.it!news-in.tin.it!news4.tin.it.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ITALIAN,ASCII
X-Google-Thread: f94ee,fd3d2086cf69f43c,start
X-Google-Attributes: gidf94ee,public
X-Google-ArrivalTime: 2004-03-06 08:00:11 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!irazu.switch.ch!switch.ch!newsfeed.nextoneserver.com!news-out.tin.it!news-in.tin.it!news4.tin.it.POSTED!not-for-mail
From: "Sax" <saccox9@tin.it>
Newsgroups: free.it.visual-basic
Subject: connessione a mdb access 2000 con password
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <2Am2c.7404$O31.315541@news4.tin.it>
Date: Sat, 06 Mar 2004 15:59:58 GMT
NNTP-Posting-Host: 80.116.25.140
X-Complaints-To: newsmaster@tin.it
X-Trace: news4.tin.it 1078588798 80.116.25.140 (Sat, 06 Mar 2004 16:59:58 MET)
NNTP-Posting-Date: Sat, 06 Mar 2004 16:59:58 MET
Organization: TIN