so i found this code out there to open a word doc:
Code:
Private Sub Command3_Click()
Dim wrdApp As Word.Application
Dim wrdDoc As Word.Document
Dim filepath As String
'Open Word
Set wrdApp = CreateObject("Word.Application")
wrdApp.Visible = True
filepath = Me.forms_FileData
'Open the file
Set wrdDoc = wrdApp.Documents.Open(filepath)
End Sub
The problem is all the example i found opened a file somewhere on the computer, where as I have the word doc attached.
I'm using a continuous form, "frmForms" (don't judge me for the name, i know this is asking for confusion but i got it)
source is a table "optForms"
attachment field is "File", PK is standard autonumber ID field.
Can anybody help me with this?