Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2004
    South Africa

    Question Unanswered: displaying a picture

    I want a picture to be displayed depending on who is selected from a combo box. eg if I select a person, i want their photo to be displayed.
    please help.

    thanks in advance

  2. #2
    Join Date
    Nov 2003
    To start with, it would most likely be best if your combo box contained two columns. The person's name (which will be visible) and the path to the picture for that person (which will be invisible). When setting up the RowSource for the ComboBox, make sure the Person's name is the first Bound Column and column widths are 1";0" and the Column count is 2.

    In the OnClick event of your ComboBox have code similar to what is shown in the below sample:
    Me![myImageBoxName].SizeMode = acOLESizeClip
    Me![myImageBoxName].Picture = Me.myComboBoxName.Column(1)
    Hope this helps

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts