but this code open the database, I want to open form in an opened database, what need I change?
Code:
Dim appAccess As Access.Application
Set appAccess = CreateObject("Access.Application")
appAccess.visible = true
appAccess.OpenCurrentDatabase "C:\Michal\xx.mdb"
appAccess.docmd.openform "formFame"
Set appAccess = Nothing