Ik probeer MsAccess te benaderen vanuit VB2008.
Hier heb ik voorbeeldcode gevonden:
http://support.microsoft.com/kb/317113
Maar ik krijg als compileerfout:
Type 'Access.Application' is not defined.
Wat ontbreekt er nog?
Hier heb ik voorbeeldcode gevonden:
http://support.microsoft.com/kb/317113
Code:
Dim oAccess As Access.Application
' Start a new instance of Access for Automation:
oAccess = New Access.ApplicationClass()
' Open a database in exclusive mode:
oAccess.OpenCurrentDatabase(filepath:="c:\mydb.mdb", Exclusive:=True)
Type 'Access.Application' is not defined.
Wat ontbreekt er nog?