XelaIrodavlas
Registered User.
- Local time
- Today, 08:26
- Joined
- Oct 26, 2012
- Messages
- 175
Hi all,
I have a database which creates hyperlinks to a network folder full of images (too many to attach to the database) but I can't figure out an easy way to show those images in forms and reports.
I think I'm 90% there, looking online I figured out that if i create a text field (not a hyperlink) in the original table and copy over the hyperlink text, I can use this as the control source of an image control (with the picture type set to 'linked').
That works fine, but I would still have to manually copy over the URL every time I link to a new picture - so is there a way i can get this to feed through automatically?
I've tried a couple of ways already (calculated fields, 'set value' macros) but the problem is anytime I try to get clever, Access doubles the link address, making it utterly useless as a control source.
So for example, i ran a macro to set the text field value to equal the hyperlink value of c:\mydocs\picture.jpg,
and the result looked like this c:\mydocs\picture.jpg#c:\mydocs\picture.jpg#
Useless.
So any ideas how to prevent this? Or maybe there are functions similar to excel (like 'left' and 'len') which i can use to extract the right part of the hyperlink.
Please help
Thanks,
I have a database which creates hyperlinks to a network folder full of images (too many to attach to the database) but I can't figure out an easy way to show those images in forms and reports.
I think I'm 90% there, looking online I figured out that if i create a text field (not a hyperlink) in the original table and copy over the hyperlink text, I can use this as the control source of an image control (with the picture type set to 'linked').
That works fine, but I would still have to manually copy over the URL every time I link to a new picture - so is there a way i can get this to feed through automatically?
I've tried a couple of ways already (calculated fields, 'set value' macros) but the problem is anytime I try to get clever, Access doubles the link address, making it utterly useless as a control source.
So for example, i ran a macro to set the text field value to equal the hyperlink value of c:\mydocs\picture.jpg,
and the result looked like this c:\mydocs\picture.jpg#c:\mydocs\picture.jpg#
Useless.
So any ideas how to prevent this? Or maybe there are functions similar to excel (like 'left' and 'len') which i can use to extract the right part of the hyperlink.
Please help
Thanks,