D
demyan
Hi,
I am trying to open an Access form from Word, using the following code:
Sub OpenAccessFormFromWord()
'Open the source database
Dim ac As Object
Set ac = CreateObject("Access.Application")
Dim db As Database
Set db = OpenDatabase("myDb")
ac.DoCmd.OpenForm "myForm"
End Sub
and receive error message smth like 'Form myForm cannot be opened at this time'. (As an aside, I am not sure if the Access.Application object is activated correctly..I do have DAO library checked). If someone could point me to a bit code successfully performing this task, I would be extremely grateful.
Thank you.
I am trying to open an Access form from Word, using the following code:
Sub OpenAccessFormFromWord()
'Open the source database
Dim ac As Object
Set ac = CreateObject("Access.Application")
Dim db As Database
Set db = OpenDatabase("myDb")
ac.DoCmd.OpenForm "myForm"
End Sub
and receive error message smth like 'Form myForm cannot be opened at this time'. (As an aside, I am not sure if the Access.Application object is activated correctly..I do have DAO library checked). If someone could point me to a bit code successfully performing this task, I would be extremely grateful.
Thank you.