Link to home
Start Free TrialLog in
Avatar of Vignette
Vignette

asked on

DSN Less Connection to a access database

Hi

I have a access data base .I need to create a dsnless connection to it.Can anybody help
Avatar of TimCottee
TimCottee
Flag of United Kingdom of Great Britain and Northern Ireland image

ADO or DAO?

For ADO:

Dim myConn As ADODB.Connection
Set myConn = New ADODB.Connection
myConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\myfolder\mydatabase.mdb;Persist Security Info=False;"
myConn.Open
Avatar of Vignette
Vignette

ASKER

One more question befor i give you the points.

How do you get a list of the tables in the access database
ASKER CERTIFIED SOLUTION
Avatar of TimCottee
TimCottee
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial