473,396 Members | 1,929 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Use a COMBO BOX to show a picture

Hi, this must have been asked for before, but I cannot see it.

Hopefully this is very simple.

I have a form which shows everything from a table. In this table is a
picture field called photo. I need to show the picture which
corresponds to the description (which is in another field in the same
table). i.e. the description is the House name, and I need to show the
picture for that house.

The pictures are bmp's and are inside the database.

At the moment I have a combo box on the form which is linked to the
table, and the description field, and a bound picture box. But the
picture does not change when the combo box changes, but it does change
with the record sellector at the bottom of the form.

Any help will be appreciated.

Many thanks in advance

Matt
Nov 12 '05 #1
1 8306
If it is a Bound Object Frame (Access does not have a control called a
Picture Box -- that's in the separate VB product), then it will change when
the record changes, so apparently making a selection in the Combo Box does
not change the record that is displayed (e.g., the Combo Box was not created
using the third option on the first screen of the Combo Box Wizard). If the
picture is displayed in an Image Frame for which the Picture property is set
in VBA code, then obviously that code is not being executed -- perhaps it
should be moved to the OnCurrent event of the Form.

On the other hand, perhaps you want something else entirely. So, if you'd
detail just a little more what you have and what you want to accomplish, we
could offer suggestions.

Larry Linson
Microsoft Access MVP

"Matt Evans" <m4**@lineone.net> wrote in message
news:8f*************************@posting.google.co m...
Hi, this must have been asked for before, but I cannot see it.

Hopefully this is very simple.

I have a form which shows everything from a table. In this table is a
picture field called photo. I need to show the picture which
corresponds to the description (which is in another field in the same
table). i.e. the description is the House name, and I need to show the
picture for that house.

The pictures are bmp's and are inside the database.

At the moment I have a combo box on the form which is linked to the
table, and the description field, and a bound picture box. But the
picture does not change when the combo box changes, but it does change
with the record sellector at the bottom of the form.

Any help will be appreciated.

Many thanks in advance

Matt

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Daniel Hill | last post by:
OK, I have very, VERY basic background knowledge of VB6 and have now upgraded to VB.NET and now I'm struggling to bring up the forms I want. What I am looking to do is to have a click a command...
2
by: Ed via AccessMonster.com | last post by:
Hi all, What I am trying to do is get the value of the second column of a bound combo box in vba. example: Combo box: column 1-ID column 2-SIGN_CODE 1 R-1.gif 2 ...
8
by: CZERNAI | last post by:
Hi Am new to programming and to this process of asking questions. I believe I have read all the threads concerning combo box questions but haven't found an answer to my problem. I am using ...
2
by: http://www.visual-basic-data-mining.net/forum | last post by:
Hi... Say i have this string call "data" in Form1, this string contains number "5" value.... how do i pass this string to the Form2 and compare with the combo box items... The combo box ...
8
by: salad | last post by:
I was wondering how you handle active/inactive elements in a combo box. Let's say you have a combo box to select an employee. Joe Blow has been selected for many record however Joe has left the...
2
by: banderson | last post by:
Hello, I have a data entry form for a table with information about buildings and am having a problem making a combo box do what I want. I would like to make the combo box show a list of unique bldg...
1
by: ecce66 | last post by:
i'm trying to make a very simple combo box which will act as a shopping cart for my website where i will be selling some art prints; ideally once a visitor selects a print title in the combo box,...
1
oranoos3000
by: oranoos3000 | last post by:
hi would you please help me i have a online shopping center that i show pictures of the my product in home page. in the InterExplorer pictures is shown correctly but in Firefox browser is shown...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.