Results 1 to 6 of 6
  1. #1
    Chris G is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Posts
    2

    Select a record and display an image

    To start off with my project i'd like to simply display an image from a UNC path in a form after selecting a record.

    The database will have 2 columns, 1 for a name of the image and one for a path to the image.

    I've been trying to create a dropdown list that lets you select a record (image name) and will display an image based on the UNC path in column 2.

    So far i've had no luck! =(

    Any help would be greatly appriciated

  2. #2
    maximus's Avatar
    maximus is offline Expert
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2009
    Location
    India
    Posts
    931

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Nice article Max.

    Chris, I don't think Access can recognize UNC pathing (I will do some testing to verify) although VBA can. However, that doesn't help if you are trying to set ControlSource property of Image control.
    Last edited by June7; 10-30-2012 at 06:02 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.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    UNC pathing does work in Image control ControlSource. Just couldn't get it to work on home computer but it does work at the office.

    Why 'no luck' - what happens - error message, wrong results nothing?
    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.

  5. #5
    Chris G is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Posts
    2
    Quote Originally Posted by June7 View Post
    Why 'no luck' - what happens - error message, wrong results nothing?

    No luck because i'm terrible with Access. I'm not able to get even the most basic thing working which likely would solve my problem.

    A drop-down list that lets me select an entry from my database. The image control then displays the UNC path based on which record is selected. The complete "noob" problem I have is I can't pass just the UNC path of the active/selected record to the image control.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Why is there need to 'pass' the path. Set the Image control ControlSource property to the values in the fields, go to that record and the image should display. Concatenate "\" if needed:

    =[UNC path field] & "\" & [image name field]
    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.

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

Similar Threads

  1. Image controls fail to display
    By GraeagleBill in forum Reports
    Replies: 5
    Last Post: 09-06-2012, 12:28 PM
  2. Problems with image display, please help
    By lherndon in forum Forms
    Replies: 2
    Last Post: 04-20-2012, 12:42 PM
  3. Have an interesting image display question.
    By mike_art03a in forum Forms
    Replies: 6
    Last Post: 11-05-2011, 12:13 AM
  4. Image display in reports from external file
    By lumoco in forum Reports
    Replies: 2
    Last Post: 09-28-2011, 04:37 PM
  5. Display image based on combobox selection?
    By 10 Gauge in forum Forms
    Replies: 2
    Last Post: 09-15-2011, 07:42 AM

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