Is there any other way (i.e by Code) to open an OLE Object than double click?

Posted on 2011-10-21
Medium Priority
Last Modified: 2012-05-12
I have a table with the name of "tblSetings" contains field with the name "HelpFile" and OLE Object type.
It contains an ms word document with the name of "TicketOrdersHelp.doc"
I need to open this word document when press on a picture  control on my form?
How come please
Notice: my form is based on another table . so I can not make this "tblSetings" as my form row source.
This table " tblSetings" is one record only contains all my constant values which is allow to the admin user to change when needed.
Question by:Mohammad Alsolaiman
  • 3
  • 2
LVL 40

Expert Comment

ID: 37008386
"my form is based on another table . so I can not make this "tblSetings" as my form row source"
But you can add small subform with this field.

Author Comment

by:Mohammad Alsolaiman
ID: 37008426
"But you can add small subform with this field."
And hide it, then call the double click of that OLE control on that hidden subform, when clicking the picture control?
Is that true?
LVL 40

Accepted Solution

als315 earned 2000 total points
ID: 37008464
Yes, but may be better to create separate form with this field and open it:
LVL 40

Expert Comment

ID: 37008557
Look sample
But may be better to use hyperlink if file is not embedded?

Author Closing Comment

by:Mohammad Alsolaiman
ID: 37008648
wonderful response
thanks a lot

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Explore the ways to Unlock VBA Project Password Excel 2010 & 2013 documents. Go through the article and perform the steps carefully to remove VBA Excel .xls file.
Windows Explorer let you handle zip folders nearly as any other folder: Copy, move, change, and delete, etc. In VBA you can also handle normal files and folders, but zip folders takes a little more - and that you'll find here.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Suggested Courses

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question