The application written in VB6 run this code:

Code:
Private Sub Image7_Click()
    Dim objaccess As Access.Application
    Set objaccess = CreateObject("Access.Application")
    
    objaccess.OpenCurrentDatabase "MyAccessDB.mdb"
    
    objaccess.DoCmd.RunMacro "SomeMacro"
    objaccess.DoCmd.Maximize
End Sub
However the application fails with the error message:

Code:
"Run time error '429', ActiveX component can't create object"
Is this message related to the library msacc9.olb or some other library?
Do I need to register some library with Windows 7?
Or what should I do?