473,386 Members | 1,720 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,386 software developers and data experts.

HIDING AN IMAGE BASED ON COMBO BOX VALUE

I'm sure there are easier ways, but... I have a combo box that has 5
possibilities (one of which is "sold"). When the combobox.value=Sold,
I want an image to appear, otherwise to not be visible. So, I thought
I do an If Then Else statement, but it doesn't seem to be working...
I'm not entirely too proficient at access programming (enough to be
dangerous), but I did:

******************
If combobox.value = Sold then
image11.visible = true
else
image11.visible = false
End if
******************

I've placed this OnLoad, OnCurrent, OnChange, AfterUpdate, etc.. But
it just won't work. It shows up on a new form just fine, but when I
change status it disappears and will not come back when status is
changed to sold in the combo box. What am I doing wrong?

Scott

Nov 13 '05 #1
1 1657

<sc*********@japan.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
I'm sure there are easier ways, but... I have a combo box that has 5
possibilities (one of which is "sold"). When the combobox.value=Sold,
I want an image to appear, otherwise to not be visible. So, I thought
I do an If Then Else statement, but it doesn't seem to be working...
I'm not entirely too proficient at access programming (enough to be
dangerous), but I did:

******************
If combobox.value = Sold then
image11.visible = true
else
image11.visible = false
End if
******************

I've placed this OnLoad, OnCurrent, OnChange, AfterUpdate, etc.. But
it just won't work. It shows up on a new form just fine, but when I
change status it disappears and will not come back when status is
changed to sold in the combo box. What am I doing wrong?

Scott


How many columns are in your combo.
The statement is looking at column 0 ie the first one
That is often a number in which case your sold should be replaced with the
relevant number for sold

HTH
David B
Nov 13 '05 #2

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

Similar topics

10
by: mark | r | last post by:
anyone know a useful way of hiding image paths so images on my site cant be directly linked to? ive seen sites that use <img src="image.asp?/moo/fred/image01.jpg"> (where the path starts from...
2
by: Tim Graichen | last post by:
I currently have a form with several combo boxes. I have the background properties and boarder properties of all form fields set as transparent. Therefore, the only part of the controls that are...
3
by: Richard | last post by:
Hi, I have a form based on a table. When I filter the form I want to run a report based on the same table with the same filter as the form. No problem until I want to filter a combo box where...
3
by: Suresh | last post by:
I have a combo and a datagrid in a page. Combo box values are loaded on page_Load. Datagrid is populated based on values selected in the combo (I am using selectedIndexchange event) I need to...
11
by: Tomek Toczyski | last post by:
What is the best way to attach a caption to an image in xhtml? I can attach a caption to a table by a "<caption>" tag but I would like to do sth similar to an image. How to do it in a natural...
2
by: Coll | last post by:
I have a field that I would like to display on a report only if the value of another field matches a certain criteria. If it does match I need the label & the field value to display (though I'm...
4
by: banderson | last post by:
Hello amazing vba writers, I am trying to make a combo box return a value based on a combo box selection. I have tried a number of the codes posted here and am still having problems. I think it is...
12
benchpolo
by: benchpolo | last post by:
I have a group of 20 images (.jpg) formats that I want to incorporate with my new access database that will dynamically display the image on the form based on the value that I select from the...
3
by: troy_lee | last post by:
How do I suppress the properties box on database startup? Thanks.
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.