Question Locked

Getting error while connecting acess database to VB6

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

i'm coneecting a database to vb thr' followng code. but i get error unrecognized databse format....
can any one tell wat's the problem ....

Dim db As Database
Set db = OpenDatabase("E:\VB\auto_mail\employees.mdb")
Dim rs As Recordset
Set rs = db.OpenRecordset("select * from emp_data")

2 replies

This discussion is closed to new replies.