Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Dynamic build hyperlink
Brent 

13 years ago
I have a form with a field jobnumber (text) and would like to build a hyperlink on that form that navigates to a certian folder where a pdf file resides. This path is duplicated multiple time in seperate job folders the only part of the path that changes is the jobnumber.

how can I build a hyperlink path that adds the jobnumber to the path.

example:

I:\projects\JobNumber\Billing\contract.pdf

the JobNumber would be filled in from the JobNumber Field from that form.

Any help would be appreciated.


Reply from Richard Rost:

A hyperlink is essentially a TEXT field that's composed of 3 parts

TextToDisplay#LocationOfFile#Bookmark

So if you want to link to a file called contract, you would make:

Contract#I:\projects\JobNumber\Billing\contract.pdf#

You don't need to specify a bookmark location at the end. Now what you could do is use the VBA REPLACE function to swap out some text in your path (like "JobNumber") and replace it with the actual JobN field. Like this:

MyPath = "I:\projects\JobNumber\Billing\contract.pdf"
MyPath = REPLACE(MyPath,"JobNumber",JobN)

Assuming you have a field on your form called JobN, your MyPath variable will end up looking like:

I:\projects\456789\Billing\contract.pdf

Then just build your hyperlink and you're good to go.


This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/17/2026 8:09:17 PM. PLT: 1s