L
Lara
Hi, I've got a table with several hundred records. One field contains
filenames, an other one contains hyperlinks to each of those files.
Some of the files, (which are templates and can't be changed), will be
selected via tickbox by the user. If the user wants to see the content of
the files before selecting them, he uses the hyperlink field to view them and
then makes up his mind. That's all easy.
Now, by clicking on a button the ticked filenames and hyperlinks get
appended to a new table, and the files get copied into a new folder. The user
wants to access them to apply individual changes.
Now of course the old hyperlink does not point to the newly copied files, so
I used code to change the hyperlink address from:
Folder1\Filename.doc#Folder1/Filename.doc# to
Folder2\Filename.doc#Folder2/Filename.doc#.
In the new table the ammended hyperlink looks just right, (blue underlined,
just like a hyperlink should be looking) but when I click on it to access a
file in the new folder I get the message "unable to open
Folder2/Filename"..... The only way to make it work is to physically go into
the hyperlink and edit it, after which it works of course even though still
looks the same as before.... And of course with several hundred files that's
unacceptable for the user.
I've looked at several articles about editing hyperlinks, but have found
none which uses code to do so.
It also came to me that I could use the shell command to access those files,
but now, after trying for so long, I am real curious if it still could be
done via hyperlink....
Thanks Lara
filenames, an other one contains hyperlinks to each of those files.
Some of the files, (which are templates and can't be changed), will be
selected via tickbox by the user. If the user wants to see the content of
the files before selecting them, he uses the hyperlink field to view them and
then makes up his mind. That's all easy.
Now, by clicking on a button the ticked filenames and hyperlinks get
appended to a new table, and the files get copied into a new folder. The user
wants to access them to apply individual changes.
Now of course the old hyperlink does not point to the newly copied files, so
I used code to change the hyperlink address from:
Folder1\Filename.doc#Folder1/Filename.doc# to
Folder2\Filename.doc#Folder2/Filename.doc#.
In the new table the ammended hyperlink looks just right, (blue underlined,
just like a hyperlink should be looking) but when I click on it to access a
file in the new folder I get the message "unable to open
Folder2/Filename"..... The only way to make it work is to physically go into
the hyperlink and edit it, after which it works of course even though still
looks the same as before.... And of course with several hundred files that's
unacceptable for the user.
I've looked at several articles about editing hyperlinks, but have found
none which uses code to do so.
It also came to me that I could use the shell command to access those files,
but now, after trying for so long, I am real curious if it still could be
done via hyperlink....
Thanks Lara