|
-
October 8th, 2001, 10:51 AM
#1
ADO
How can i connect to a access database using ADO?
-
October 8th, 2001, 10:55 AM
#2
Re: ADO
Dim Cnn As ADODB.Connection
'In the place where you want to establish your connection, such
'as the Initialize event of a class module, enter the following:
Dim sConn As String
Set Cnn = New ADODB.Connection
sConn = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & DBNAME & _
";Persist Security Info=False"
With Cnn
.CursorLocation = adUseClient
.Open strConnect
End With
Iouri Boutchkine
[email protected]
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
|