Results 1 to 3 of 3
  1. #1
    Ultimateneo is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2018
    Posts
    19

    Post Images from sharepoint

    Hello I am storing images on a sharepoint site.



    On an access form i want to show the images from a image object on the form that is connected to a combo box.

    Code:
                 Image2.picture = Sharepointsite Me.combobox1.(Column3).value .jpg
    the code is an example of what i want.

    I would like to have the path once and then use the combobox to set the filename and then the .jpg could be hard coded. As all files are in the same location and only filename changes it would hopefully stop errors if a long path didnt have to be entered in every time a new photo was added.

    Any help is appreciated

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    50,635
    I am not familiar with SharePoint, however, an image file path can be constructed with concatenation.

    "folder path\" & Me.combobox1.Column(3) & ".jpg"

    Expression can be placed in Image control ControlSource property and no VBA should be necessary - just remove the Me. prefix.
    Last edited by June7; 12-05-2021 at 01:34 PM.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Ultimateneo is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2018
    Posts
    19
    I think there is a way to change the sharepoint site address to a network location.

    Thanks for your help

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

Similar Threads

  1. Replies: 7
    Last Post: 03-22-2020, 02:05 PM
  2. Replies: 4
    Last Post: 04-10-2019, 06:15 PM
  3. Replies: 0
    Last Post: 09-18-2017, 09:02 AM
  4. Replies: 0
    Last Post: 03-24-2014, 09:35 AM
  5. Replies: 17
    Last Post: 08-26-2009, 11:27 AM

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