VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Connecting to a password enabled database using ADODB object....

HyperDex  (1 Submission)   Databases/Data Access/DAO/ADO   Visual Basic 5.0   Unknown Difficulty   Sun 9th May 2004   Mon 8th February 2021

Connecting to a password enabled database using ADODB object....

API Declarations


'MS ACCESS 2000 and set its database password to DEXTER
'Create a module and write this down

public hyper as ADODB.Connection

sub connectme()
on error goto errhandler
set hyper = new ADODB.Connection
'Using a JET 4.0 Provider in an MS Access 2000 database

hyper.Open "Provider=Microsoft.Jet.OLEDB.4.0;" _
"Data Source=C:\mydatabse.mdb;Persist Security Info=False;" _
"Database Password=dexter"

msgbox "Connection Established"...
exit sub

errhandler:
msgbox "Connection Error.. " + Err.Description
end sub

Rate Connecting to a password enabled database using ADODB object.... (1(1 Vote))
Connecting to a password enabled database using ADODB object.....bas

Connecting to a password enabled database using ADODB object.... Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters