Results 1 to 4 of 4
  1. #1
    cyndiperr is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2014
    Posts
    2

    Return an image in a drop down box in a form from the database dropdown

    OK - I am an occassional Access user. I have created a database and then a corresponding form I am going to use as a report off of the info. I would like (for presentation purposes) to figure out how to create a drop down menu in the database that will return an image for that field and then have that image show up in the form. I need to be able to choose from three images.



    Can that be done - if so how?

  2. #2
    cyndiperr is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2014
    Posts
    2

    Want to have a pic/object returned for a drop down selection

    nobody can answer my original post? I really want to figure out if this can be done or not. PLEASE HELP - Thanks!
    OK - I am an occassional Access user. I have created a database and then a corresponding form I am going to use as a report off of the info. I would like (for presentation purposes) to figure out how to create a drop down menu in the database that will return an image for that field and then have that image show up in the form. I need to be able to choose from three images.

    Can that be done - if so how? IF it can't could someone just please tell me. I have imbedded an OLE object but can't figure out how to get a drop down to return an image.

    Any response is appreciated - Thanks!

  3. #3
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    India
    Posts
    616
    -Add one image control and combo box to the form say cmbImageList and ImageToDisplay
    -Store all the images in a folder and their full paths as row source for the cmbImageList. You can use more columns in the combobox to hide the actual path and show custom image names.
    Add following line to the cmbImageList's after update event -
    Me.ImageToDisplay.Picture=Me.cmbImageList

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Possibly don't even need code.

    Set the Image control ControlSource property with an expression:

    =[cmbImageList]
    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. Replies: 1
    Last Post: 04-25-2014, 11:41 AM
  2. Return rows where value equals drop down
    By AccessLiability in forum Forms
    Replies: 1
    Last Post: 07-02-2012, 07:15 AM
  3. Replies: 15
    Last Post: 03-12-2012, 06:38 PM
  4. Replies: 3
    Last Post: 08-03-2010, 03:35 AM
  5. Drop Down, link to another dropdown
    By davelliott in forum Forms
    Replies: 3
    Last Post: 05-23-2006, 08:05 PM

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