|
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
-
Sep 16th, 2005, 05:19 AM
#2
Re: dsn
You don't need it if you are using ADO with Access.
You can open MDB files directly.
-
Sep 17th, 2005, 01:30 PM
#3
Re: dsn
Are you looking to create a DSN or USE a DSN?
-
Sep 22nd, 2005, 12:38 AM
#4
Thread Starter
Hyperactive Member
Re: dsn
I want to create a dsn through vb code.
(for SQL Server 2000 & Access2000)
thanks
-
Sep 22nd, 2005, 03:05 AM
#5
Re: dsn
 Originally Posted by asm
I want to create a dsn through vb code.
(for SQL Server 2000 & Access2000)
thanks
Quick search on http://groups.google.com/groups?q=vb+create+dsn
with this nice link.
http://support.microsoft.com/Default.aspx?id=184608
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
|