M
Marta
I am coding in the open event of a form.
When I try to open a recordset from table in my database:
Dim wrkJet As Workspace
Dim midb As Database
Dim cfbh As Recordset
Set wrkJet = CreateWorkspace("", "admin", "", dbUseJet)
Set midb = wrkJet.OpenDatabase("c:\qrx\refills62000.mdb")
Set cfbh = midb.OpenRecordset("cfbh", dbopentable)
It returns: Run-time error '13'
type mismatch
Why a type error?
When I try to open a recordset from table in my database:
Dim wrkJet As Workspace
Dim midb As Database
Dim cfbh As Recordset
Set wrkJet = CreateWorkspace("", "admin", "", dbUseJet)
Set midb = wrkJet.OpenDatabase("c:\qrx\refills62000.mdb")
Set cfbh = midb.OpenRecordset("cfbh", dbopentable)
It returns: Run-time error '13'
type mismatch
Why a type error?