Access World Forums

Access World Forums (https://www.access-programmers.co.uk/forums/index.php)
-   Forms (https://www.access-programmers.co.uk/forums/forumdisplay.php?f=9)
-   -   Button to follow a hyperlink in a hidden textbox (https://www.access-programmers.co.uk/forums/showthread.php?t=301746)

Jab331 10-02-2018 04:40 AM

Button to follow a hyperlink in a hidden textbox
 
I have a hidden textbox in a form that contains a link to a folder full of pictures. I have created a small button on the form that i would like to follow the link in the hidden textbox and bring up the relevant pictures. What is the code needed for this?

isladogs 10-02-2018 06:13 AM

Re: Button to follow a hyperlink in a hidden textbox
 
1 Attachment(s)
See if you can adapt the attached:

Jab331 10-02-2018 06:33 AM

Re: Button to follow a hyperlink in a hidden textbox
 
I've had a play about and to be honest i am completely lost...Sorry.

I think this is way more complicated than anything i am asking for?

isladogs 10-02-2018 06:44 AM

Re: Button to follow a hyperlink in a hidden textbox
 
All you need to do is click the 'Populate' button and select an image folder.
This will populate the listbox.
Click any image in the list to view it.

Click View All Images to view a report with thumbnails of all images in the folder.

HTH

Jab331 10-02-2018 06:50 AM

Re: Button to follow a hyperlink in a hidden textbox
 
I have managed to populate the images but that is not the code i require.

The images i want to display are in thousands of different folders across different drives so whenever a record is loaded on to the form a hidden text box includes the hyperlink to the correct folder full of relevant images. I just need to somehow link the button in the form to the click action of the hidden hyperlink so the correct folder is opened.

Thanks,

isladogs 10-02-2018 07:25 AM

Re: Button to follow a hyperlink in a hidden textbox
 
If you want to view all images in your folder at once, I suggest you use an ActiveX web browser control. AWF member static did an example movie database last year showing loads of DVD cover images. A forum search should find it.

Otherwise if you're happy with the idea from my example database adapt the code in the cmdPopulateImageList. Start at the line strSourceFolder =...
and change it to the folder path in your hidden textbox. However you don't want this to be a hyperlink

Good luck with your project. Signing out now


All times are GMT -8. The time now is 08:00 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
(c) copyright 2017 Access World