G
Guest
Can anybody please explain the following errors, both of which contravene
examples posted in this list and/or the Help for DAO ?
(1)
Dim db As DAO.Database
Set db = Application.CurrentData
--> Error 13: Type mismatch.
.... I can avoid this error by using "Dim db As Object" instead. Why?
(2)
Dim td As DAO.TableDef
Set td = Application.CurrentData.CreateTableDef("test")
--> Error 438: Object doesn't support this property or method.
.... I can't get past this; my project is halted. This example is not
different from that in the Help page on the CreateTableDef method, so what
could be wrong?
(-- increasingly frustrated and thinking about chucking Access in the bin
and doing everything in VB6 !)
examples posted in this list and/or the Help for DAO ?
(1)
Dim db As DAO.Database
Set db = Application.CurrentData
--> Error 13: Type mismatch.
.... I can avoid this error by using "Dim db As Object" instead. Why?
(2)
Dim td As DAO.TableDef
Set td = Application.CurrentData.CreateTableDef("test")
--> Error 438: Object doesn't support this property or method.
.... I can't get past this; my project is halted. This example is not
different from that in the Help page on the CreateTableDef method, so what
could be wrong?
(-- increasingly frustrated and thinking about chucking Access in the bin
and doing everything in VB6 !)