Results 1 to 7 of 7
  1. #1
    cmedved is offline Novice
    Windows 10 Access 2016
    Join Date
    Jul 2018
    Posts
    3

    How do I make photos in a URL appear on the Access Form automatically

    Hello ~



    I have a database of my company catalog in Access 2016. I'm trying to create a user-friendly form. One of the fields is a hyperlink to a website that has a photo of the item. I would like that field to automatically appear on the form as the photo, not the hyperlink. I've only found ways to do this if I have a file with the photos in it. There are too many photos to download to use that method. I know there is a way to do this, I just haven't been able to find it.

    Please help.
    CMedved

  2. #2
    orange's Avatar
    orange is online now Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Can you show us the link to an item from your catalog?
    Tell us more about the website that has the photos.
    What exactly have you tried?

    Before retiring, we had a database of companies (50000) with their products, services, exporting/importing info, contacts..... and logos, photos etc.
    The images were processed for size consistency and placed in an online folder. A reference(s) to that folder and image(s) was inserted into the related company record. This was not Access -it was an Oracle based online web application.
    My point is that somewhere you have to store the photos and have process(es) to ensure photo is identified in the related record when the record is accessed by the client.


    UPDATE:

    I did some searching and found this article and example from a colleague on a different group.
    It may give you some insight into what is required.
    Last edited by orange; 07-23-2018 at 07:01 AM. Reason: new info with example database

  3. #3
    cmedved is offline Novice
    Windows 10 Access 2016
    Join Date
    Jul 2018
    Posts
    3

    How do I make photos in URL appear on the Access Form automatically

    Hello ~

    Here is an example of one of the links, http://www.moen.com/shared/images/ko_weblarge/225.jpg. These are our customer's products. If I copy and paste the web address, the photo shows up. I don't know much more about he website.

    I've tried coding the URL as a text box and adding and image box and changing the control source to the Product Image URL. That did not work. I also changed it back to a hyperlink which did not work either.

    Click image for larger version. 

Name:	access link.JPG 
Views:	19 
Size:	69.2 KB 
ID:	34816

  4. #4
    orange's Avatar
    orange is online now Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    How will you keep your links current? Seems any vendor/manufacturer could change the photo, or its location at any time.

    Did you look at the example from Gustav in my last post? He is a very experienced and knowledgeable developer.

  5. #5
    cmedved is offline Novice
    Windows 10 Access 2016
    Join Date
    Jul 2018
    Posts
    3
    I did not see the directions for Gustav, but will review. Thank you!

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Post 3 was moderated, I'm posting to trigger email notifications.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  7. #7
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    I regularly use the URLDownloadToFile approach mentioned in gustav's article (e.g. to download Google maps) and it works well
    ...but it does need to save the image(s) to a file.
    As I don't need to keep the images, I overwrite the same file each time
    I've not tried the URLDownloadToCacheFile but it looks like it will suit your purposes.

    However, you may want to also check out the LoadPictureFromURL approach mentioned in this thread https://www.tek-tips.com/viewthread.cfm?qid=1758167 by strongm.
    IIRC it only works with an ActiveX form
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 11
    Last Post: 08-26-2016, 11:51 AM
  2. Replies: 11
    Last Post: 05-15-2016, 07:38 AM
  3. Replies: 3
    Last Post: 12-07-2013, 01:12 AM
  4. How do I make a form come up automatically?
    By Nick Lingenfelter in forum Access
    Replies: 4
    Last Post: 02-27-2013, 09:31 AM
  5. Replies: 1
    Last Post: 10-10-2012, 12:25 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums