Discussion Locked
0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have a field in a table of OLE Object data type. This field links to Word documents. Is there a way to code a command button on a form which when clicked, shows the Word document for that record?
6 replies
Point value changed by question poster.
by carquiza
Hi,
Why not try this code?
Insert this code to a button:
Sub Command_Click()
Set Word = CreateObject("word.application")
Word.Visible = True
Word.Documents.Open FileName:=App.Path & "\Name of Word Doc File.doc"
End Sub
Hope this help a bit.
Cheers,
Mel Arquiza
Home Page Design
http://hpd.welcome.to
Poster rated this answer
by sl-campbell
Or
Use an OLE Container Object (Bound Object Field) on your form and bind it to the OLE field.
Poster rated this answer
This question was closed by the author
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending
Question Unanswered
How can developers improve performance on content-heavy websites?
0 helpful
0 replies
Question Unanswered
How do you protect downloadable files on a WordPress store?
0 helpful
0 replies
0 helpful
1 reply
1 helpful
3 replies
Discussion Locked
What Makes a Business Website Effective in 2026
2 helpful
10 replies