Controlling Hyperlink Clicks

  • Thread starter Thread starter DaveK
  • Start date Start date
D

DaveK

I have a DB with several hyperlink fields that point
to .jpg files located on the local hard drive (don't ask
me why that method was chosen, the original programmer is
no longer here). When the use clicks on the link, I want
to control which program opens the file. Right now, IE
comes up and it is not able to print the image correctly,
although the display is fine. I want Kodak's Image
Preview to open the file, since it does a better print
job. How can I redirect that user's click? If the file
is opened via Explorer, no problem, Image Preview comes
up. But within Access, that system setting is ignored and
Access always uses IE to open the file. Can anyone
suggest a form type or a setting that will allow me to set
an explicit program name? Thanks for any suggestions.
 
Thanks for the info. I was able to create a simple test
form and use the Click method to launch the desired app,
but it also launches the Access default app as well. How
can I stop that?
 
Sorry, I meant to say the Click event, not method. I also
tried to capture the default action by setting other
events that are keyboard/mouse type events, but nothing I
have done so far is able to prevent the default action
from also occuring. It does seem as though my event
handler kicks in first, then Access's choice runs, since
it comes up after my program starts and winds up on top.
 
I have never used a hyperlink field in any of my projects so I am not
familiar with their behaviour. However after a short experment it looks
like you may have to change all of these to a pair of text fields, one to
display the text that you want to display and the other with the location of
the jpg you want to have loaded.

Ron W
 
If I modify the field to be a text instead of a hyperlink,
then everything works as I would wish. The modification
changes the hyperlink on existing data to a text field
preceeded and ending with # signs. At least the on click
event can then be made to just pull up what I want,
instead of opening my program then opening whatever Access
feels I want. Thanks for the help. I think I will stay
away from using hyperlink fields for displaying images,
since I want to be the one who is fully in control.
 
Back
Top