Adding Icon to Open an Object

J

Jimmy

I have a database form based on the Contacts Management template mdb. What I
am trying to do is add a control to the Contacts Form where I can Drag and
Drop an item such as a *.pdf or *.doc (for example a resume).

The desired behavior would be to go to the form and double click the control
to wake-up the appropriate application so I can see the full document. Using
a bound control I can only see what is within the size of the control .... I
want it to wake up a PDF Viewer or Word (the default application defending on
the file extension).

Any ideas? I am sure this is simple.
 
J

Jimmy

Shell txtProgram.Text, vbMaximizedFocus

My object is OLEBound64 by name. I drag a Word Document onto the OLEBound64
and it displays a small corner of the object.

Now, double click event fro OLEBound64: Shell txtProgram.Text,
vbMaximizedFocus
The problem is that I have to get the file path from OLEBound64
Obviously txtProgram.Text is not my file ... I need to extract something
like c:\abc\MyResume.doc from OLEBound64 so I can place that where I have
txtProgram.Text above
 
D

Douglas J. Steele

Assuming OLEBound64 is the standard Access Bound Object Frame control, set
its Verb property to -2 and double-clicking on the document should
automatically open it in the appropriate application.
 
Top