Question : Opening Access form from a word document

This relates to my previous question No:26293781 which has gone unanswered so I will simplify things a bit then delete the original.

I need the syntax to open a form in a current open access db from a word document

I have tried the following which is giving me errors


Private Sub Document_Open()

Dim appAccess As Access.Application
Dim appForm As Access.Forms

Set appAccess = GetObject(Access.Application)

DoCmd.OpenForm "zfrm_Letters"


End Sub

Answer : Opening Access form from a word document

Quick and dirty:

    ThisDocument.FollowHyperlink "C:\YourDB.mdb", "Form zfrm_Letters"

(°v°)
Random Solutions  
 
programming4us programming4us