M
ma
hello,
I am new in VBA for access and I wrote the following simple code but it
doesn't work properly:
Dim wrkJet As Workspace
Dim db As Database
Dim mytable As Recordset
Set wrkJet = CreateWorkspace("", "admin", "", dbUseJet)
Set db = wrkJet.OpenDatabase("c:\jila_databse.mdb")
Set mytable = db.OpenRecordset("tblEpisodes", dbOpenTable)
the error is that type mismatch and it points to the line that opens
recordset. what is the problem?
Best regards
I am new in VBA for access and I wrote the following simple code but it
doesn't work properly:
Dim wrkJet As Workspace
Dim db As Database
Dim mytable As Recordset
Set wrkJet = CreateWorkspace("", "admin", "", dbUseJet)
Set db = wrkJet.OpenDatabase("c:\jila_databse.mdb")
Set mytable = db.OpenRecordset("tblEpisodes", dbOpenTable)
the error is that type mismatch and it points to the line that opens
recordset. what is the problem?
Best regards