Yes - many ways. If the document is inserted into your
table as a linked OLE object into an OLE-type field. You
will be able to click on it in your table or form and it
will automatically open the document. This, however, has
the disadvantage of occupying a LOT of space in the
database. 100kb of docs takes over 500kb of space.
Better is to store the names and folder paths of the docs
in a table and then "shell" out to winword.exe when you
click on a command button.
I have a form which displays the file name and path and a
command button - and the following code in the on-click
event of the button :
Private Sub Command21_Click()
Dim strCmd As String
strCmd = """C:\Program Files\Common Files\Microsoft
Shared\PhotoEd\Photoed.exe"""
strCmd = strCmd & """" & Me![FilePathName] & """"
Shell strCmd
End Sub
My example is invoking Microsoft Photo Editor - replace
the command line with winword.exe and you are in business.
Matthew
-----Original Message-----
Can I setup a field in Access that is a link to a Word document. In other
words, when I click on the field in the record, Word will launch with the
selected document?
.