How to connect to MS Access using DAO
Solved/Closed
Related:
- Vba dao connection example
- Find vba - Guide
- Vba case like - Guide
- Vba timer - Guide
- Playstation network connection failed ✓ - PS3 & PS4 Forum
- Wireless network connection - Guide
1 response
Dear,
First you need to open a reference by : Project -> References -> Click on : Microsoft DAO 3.6 Object Library
Dim db As DAO.Database
Dim rs As DAO.Recordset
then use the following code in form load:
Set db = OpenDatabase("jel-exp.co.cc\Chat.mdb")
Set rs = db.OpenRecordset("select * from NIckname")
First you need to open a reference by : Project -> References -> Click on : Microsoft DAO 3.6 Object Library
Dim db As DAO.Database
Dim rs As DAO.Recordset
then use the following code in form load:
Set db = OpenDatabase("jel-exp.co.cc\Chat.mdb")
Set rs = db.OpenRecordset("select * from NIckname")