hi ,
I need to know how can I connect Microsoft access with VB,I need to have wide space in programming in MS access...regards

Recommended Answers

All 3 Replies

Set Con = New ADODB.Connection
Con.Open "dsn=Datadb;driver={microsoft access driver(*.mdb)};dbq=d:\ABC\test.mdb"
Set rs = New ADODB.Recordset

Declare con and rs as public

you can connect it by properties. just put a data control and select its properties: connect database access and select the file location and then select the recordsource . all you by its properties.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.