Solved

How to edit hyperlink in runtime (Access 2007)?

Posted on 2010-09-10
5
1,190 Views
Last Modified: 2013-11-27
How do I edit a hyperlink in runtime when I have no right mouse click?

Hyperlink is a field that links PDFs located in the same folder as the app.
0
Comment
Question by:notpandora
  • 3
  • 2
5 Comments
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 33646722
Edit it how?

You can edit any hyperlink by editing it directly in the table.
In a form, you can Tab into the Hyperlink field and change it.

Or you can do this in a form via code with something like this:

    me.YourHyperlinkControl.SetFocus

;-)

JeffCoachman
0
 

Author Comment

by:notpandora
ID: 33646828
In full Access I just right mouse click on the form field and click Hyperlink / Edit Hyperlink and I can browse for the file and link it. In runtime I have no right click so can't access this menu....
0
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 250 total points
ID: 33647468
I try to avoid using these "Access Only" Fields (Hyperlink, OLE, attachment, ...etc)
They will not translate into other formats like SQL server, and they have issues like the on you are having.

Here is a very simple example of what I use to do this.

I am sure you can adapt it to work in your database

;-)

JeffCoachman
Access-EEQ-26464463-LinkedPDFDia.mdb
0
 

Author Closing Comment

by:notpandora
ID: 33652561
Thanks Jeff, got it working in the end. Thanks again...fc
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 33667487
;-)
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

708 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now