G
Guest
Dim DB As Database
Dim rs As Recordset
Dim Qry1 as string
Qry1 = "SELECT * FROM Employer"
Set DB = DBEngine.Workspaces(0).OpenDatabase("D:/Mydb.mdb")
Set rs = DB.OpenRecordset(Qry1, dbOpenSnapshot)
why does set rs give me a type mismatch error? I have a reference to DAO set.
(e-mail address removed)
Dim rs As Recordset
Dim Qry1 as string
Qry1 = "SELECT * FROM Employer"
Set DB = DBEngine.Workspaces(0).OpenDatabase("D:/Mydb.mdb")
Set rs = DB.OpenRecordset(Qry1, dbOpenSnapshot)
why does set rs give me a type mismatch error? I have a reference to DAO set.
(e-mail address removed)