I am developing a database to control the documentation system within my company. It will control the procedures and who they are issued to.
I have the following code which opens a new Word file:
Option Compare Database
Private Sub word_button_Click()
On Error GoTo Err_word_button_Click
Dim oApp As Object
Set oApp = CreateObject("Word.Application")
oApp.Visible = True
Exit_word_button_Click:
Exit Sub
Err_word_button_Click:
MsgBox Err.Description
Resume Exit_word_button_Click
End Sub
However, I would like to open an existing file based on the value of a field. The name of the field will reside in the 'Title' field of a continuous forms view of a table called 'Procedures'. The actual procedures resids on a server drive called 'c:\Documents'
I am a bit of a Visual Basic virgin/muppet at the moment, so any help would be appreciated.
I have the following code which opens a new Word file:
Option Compare Database
Private Sub word_button_Click()
On Error GoTo Err_word_button_Click
Dim oApp As Object
Set oApp = CreateObject("Word.Application")
oApp.Visible = True
Exit_word_button_Click:
Exit Sub
Err_word_button_Click:
MsgBox Err.Description
Resume Exit_word_button_Click
End Sub
However, I would like to open an existing file based on the value of a field. The name of the field will reside in the 'Title' field of a continuous forms view of a table called 'Procedures'. The actual procedures resids on a server drive called 'c:\Documents'
I am a bit of a Visual Basic virgin/muppet at the moment, so any help would be appreciated.