|
Thread: dsn
-
Sep 16th, 2005, 05:07 AM
#1
Thread Starter
Hyperactive Member
dsn
Hi
I calling crystal report into vb6
for that i want to create the dsn from system
Can anybody help how to create dsn from vb6.
'connection to database for entry moudle
Public Sub Data_connect()
Dim loadMdb As String
loadMdb = App.Path & "\gold.mdb"
Set Conect_Database = New ADODB.Connection
Conect_Database.ConnectionString = "Provider=Microsoft.Jet.Oledb.4.0;Data Source=" & loadMdb 'Without Password
'Conect_Database.ConnectionString = "Provider=Microsoft.Jet.Oledb.4.0;Data Source=" & loadMdb & ";Jet OLEDB atabase Password=SKM;" 'With password (skm)
Conect_Database.Open
End Sub
Thanks
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
|