How to connect to MS Access using DAO
Solved/Closed
Related:
- Vba dao connection example
- Vba case like - Guide
- Excel online vba - Guide
- Ps3 internet connection failed ✓ - PS3 & PS4 Forum
- Playstation 3 won't obtain the IP address ✓ - PS3 & PS4 Forum
- Sound card 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")