G
Guest
I am trying to link my Access database to specific Word file so that word
opens in the file.
The address of the word file is contained within the field called [Details]
I have tried the following, I am just learning VBA, but it will not work,
can you assist?
Private Sub Open_Property_File_Click()
On Error GoTo Err_Open_Property_File_Click
Dim stAppName As String
stAppName = "winword.exe Me![Details].Visible = True"
Call Shell(stAppName, 1)
Exit_Open_Property_File_Click:
Exit Sub
Err_Open_Property_File_Click:
MsgBox Err.Description
Resume Exit_Open_Property_File_Click
End Sub
opens in the file.
The address of the word file is contained within the field called [Details]
I have tried the following, I am just learning VBA, but it will not work,
can you assist?
Private Sub Open_Property_File_Click()
On Error GoTo Err_Open_Property_File_Click
Dim stAppName As String
stAppName = "winword.exe Me![Details].Visible = True"
Call Shell(stAppName, 1)
Exit_Open_Property_File_Click:
Exit Sub
Err_Open_Property_File_Click:
MsgBox Err.Description
Resume Exit_Open_Property_File_Click
End Sub