|
-
Apr 28th, 2000, 01:09 PM
#1
Thread Starter
Hyperactive Member
I am trying to open a password protected Access database using ADO 2.1. I get an error message on opening the connection object. The error is "Cannot find system workgroup information file". Any suggestions
-
Apr 30th, 2000, 07:17 AM
#2
if you create a system-dsn in control panel\odbc32 just as normal and use similar code it should work. i didn't find out how it works using a connection string, but it is propably possible too (somehow).
best regards
***********************************************************
Private Sub Form_Load()
Dim cn As New ADODB.Connection
cn.Open "Dsn=test", , "test" 'password=test
With rs
.CursorLocation = adUseClient
.Open "select * from test", cn, _
adOpenKeyset, adLockBatchOptimistic
.ActiveConnection = Nothing
End With
Set cn = Nothing
Set DataGrid1.DataSource = rs
End Sub
Private Sub Form_Unload(Cancel As Integer)
Set rs = Nothing
End Sub
-
Apr 30th, 2000, 09:03 PM
#3
Addicted Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|