Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cant open my database !!

Status
Not open for further replies.

TRYP

Programmer
Jun 20, 2000
136
0
0
US
Dim x As ADODB.Connection
Set x = New ADODB.Connection
x.Provider = "microsoft.jet.oledb.3.51;"
x.ConnectionString = "persist security info=true;" & _
"Data Source=a:\myvbproject\school2.mdb"

x.open ,,password

I get an error that says something about a workgroup file cant be found or is in use

ive opened databases before just never one with password before.
Any Ideas ?
-tryp
 
Hello, try to change your code with that connection string:

Dim x As ADODB.Connection
Set x = New ADODB.Connection
x.Provider = "microsoft.jet.oledb.3.51;"
x.ConnectionString = "Persist Security Info=False;Data Source=a:\myvbproject\school2.mdb;Jet OLEDB:Database Password=YourDatabasePassword"
x.open

Bye, My e-mail is: vzudaire@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top