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 2 / April 2008

Tip: Looking for answers? Try searching our database.

Access 2003 form hyperlinks

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kuslusr1 - 24 Apr 2008 20:38 GMT
I have a form with multiple records, starting with number one 1 and ending at
400. Each access record has subfolder containing information like word
documents, pdfs and jpegs. The subfolder names are formatted like "HAZS00001"
THROUGH HAZS0000400".  I would like to know how to run code that would load
the correct path to folder in a text box on the associated record.
Signature

kuslusr1

akphidelt - 24 Apr 2008 21:31 GMT
Alright, I do this in my access databases as well. What you need to do is use
the VBE. Create a button that has an event on it. For an example this is how
it would look. On the main form you would have a textbox or combobox that you
type in the name of the file you want... so the code would do this

Set up the path name

Dim mypath as String
Dim file_name as String

mypath = "C:\\yourpathhere\"
file_name = Me.yourtextorcomboboxhere

mypath = mypath & file_name

FollowHyperlink mypath

The other way to do this is to set up the path in a table within access...
this is in case you have more then 1 drive set up or folder names. Then you
can use a DLookup to retrieve the path and then FollowHyperlink to that path.

> I have a form with multiple records, starting with number one 1 and ending at
> 400. Each access record has subfolder containing information like word
> documents, pdfs and jpegs. The subfolder names are formatted like "HAZS00001"
> THROUGH HAZS0000400".  I would like to know how to run code that would load
> the correct path to folder in a text box on the associated record.
 
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.