|
-
June 27th, 2001, 02:33 PM
#1
Database link problem
Can VB6 link with Office Access 2000 or even Office XP Access?
-
June 27th, 2001, 02:41 PM
#2
Re: Database link problem
Dim sConn As String
Dim cn as ADODB.Connection
Set cn = New ADODB.Connection
sConn = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & DBNAME & ";Persist Security Info=False"
cn.ConnectionString = sConn
cn.Open sConn
thta will connect you to Access db. Now you can create recordset and do anything you want
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
|