Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 1 / April 2006

Tip: Looking for answers? Try searching our database.

linking to images with std windows dialog box

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
James Stewart - 30 Apr 2006 13:49 GMT
I have an OLE Object field that I want to link to image files on the hard
drive. From a form, I want users to be able to double click the field and
have that bring up a standard windows dialog box to select the image rather
than having to right click the field, select Insert Object and then manually
select "Create from file" and check of "Link". Any thoughts on where to
begin?
Haim Rubin - 30 Apr 2006 14:28 GMT
Hi James,

You shall use "Microsoft common dialog control", you can find this
control by press on "More Control" button and scroll down till you'll
see "Microsoft common dialog control 6.0" this button appears right to
the standard controls and it's Icon is similar to the toolbox icon.
In this control you can open a dialog for opening file(actually it's
only get the path that you explorer for), and when you'll select the
file you can get is name(path of thefile) by is property <common dialog
name>.FileName.

Hope I helped, Haim Rubin.
pietlinden@hotmail.com - 30 Apr 2006 16:23 GMT
http://www.mvps.org/access/api/api0001.htm

use that, and then just store the file path... store as text, format as
a hyperlink.  You might want to check out Randy Birch's site for
converting the paths to UNC paths if they're on networked drives.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.