Zeroanarchy
Technical User
Hi all thanks for your time on this simple prob, I am trying to run the below code on change of value in the combo box and it does nothing. anyone got any ideas??
properties
style - 2 Dropdown list
datafield - Blank
dataformat - Blank
datamember - blank
datasource - blank
item data - Weeds of National Significance
Chemical Controls
Mechanical Controls
Risk Rating
Selected Contractors and so on...
Private Sub Combo1_Change()
If Combo1.Index = "Weeds of National Significance" Then
Picture10.Visible = True
Picture2.Visible = False
Picture3.Visible = False
Picture4.Visible = False
Picture5.Visible = False
Picture6.Visible = False
Picture7.Visible = False
Picture8.Visible = False
Picture9.Visible = False
Picture1.Visible = False
If Combo1.Index = "Chemical Controls" Then
Picture1.Visible = True
Picture2.Visible = False
Picture3.Visible = False
Picture4.Visible = False
Picture5.Visible = False
Picture6.Visible = False
Picture7.Visible = False
Picture8.Visible = False
Picture9.Visible = False
Picture10.Visible = False
If Combo1.Index = "Mechanical Controls" Then
Picture1.Visible = False
Picture2.Visible = False
Picture3.Visible = False
Picture4.Visible = False
Picture5.Visible = False
Picture7.Visible = False
Picture8.Visible = False
Picture9.Visible = False
Picture10.Visible = False
Picture6.Visible = True
If Combo1.Index = "Risk Rating" Then
Picture1.Visible = False
Picture2.Visible = False
Picture3.Visible = False
Picture4.Visible = False
Picture5.Visible = False
Picture6.Visible = False
Picture7.Visible = False
Picture8.Visible = False
Picture10.Visible = False
Picture9.Visible = True
If Combo1.Index = "Selected Contractors" Then
Picture1.Visible = False
Picture3.Visible = False
Picture4.Visible = False
Picture5.Visible = False
Picture6.Visible = False
Picture7.Visible = False
Picture8.Visible = False
Picture9.Visible = False
Picture10.Visible = False
Picture2.Visible = True
If Combo1.Index = "Outcome Of Controls By Species" Then
Picture1.Visible = False
Picture2.Visible = False
Picture3.Visible = False
Picture4.Visible = False
Picture5.Visible = False
Picture6.Visible = False
Picture8.Visible = False
Picture9.Visible = False
Picture10.Visible = False
Picture7.Visible = True
If Combo1.Index = "Enviro Report By Species" Then
Picture1.Visible = False
Picture2.Visible = False
Picture3.Visible = False
Picture5.Visible = False
Picture6.Visible = False
Picture7.Visible = False
Picture8.Visible = False
Picture9.Visible = False
Picture10.Visible = False
Picture4.Visible = True
If Combo1.Index = "Registered Weed Infestations By Species" Then
Picture1.Visible = False
Picture2.Visible = False
Picture3.Visible = False
Picture4.Visible = False
Picture5.Visible = False
Picture6.Visible = False
Picture7.Visible = False
Picture9.Visible = False
Picture10.Visible = False
Picture8.Visible = True
If Combo1.Index = "Registered Weeds By Location" Then
Picture1.Visible = False
Picture2.Visible = False
Picture3.Visible = False
Picture4.Visible = False
Picture6.Visible = False
Picture7.Visible = False
Picture8.Visible = False
Picture9.Visible = False
Picture10.Visible = False
Picture5.Visible = True
If Combo1.Index = "Costs By Species" Then
Picture1.Visible = False
Picture2.Visible = False
Picture4.Visible = False
Picture5.Visible = False
Picture6.Visible = False
Picture7.Visible = False
Picture8.Visible = False
Picture9.Visible = False
Picture10.Visible = False
Picture3.Visible = True
Thanks
ZeroAnarchy
Experience is a wonderful thing. It enables you to recognize a mistake
when you make it again.
properties
style - 2 Dropdown list
datafield - Blank
dataformat - Blank
datamember - blank
datasource - blank
item data - Weeds of National Significance
Chemical Controls
Mechanical Controls
Risk Rating
Selected Contractors and so on...
Private Sub Combo1_Change()
If Combo1.Index = "Weeds of National Significance" Then
Picture10.Visible = True
Picture2.Visible = False
Picture3.Visible = False
Picture4.Visible = False
Picture5.Visible = False
Picture6.Visible = False
Picture7.Visible = False
Picture8.Visible = False
Picture9.Visible = False
Picture1.Visible = False
If Combo1.Index = "Chemical Controls" Then
Picture1.Visible = True
Picture2.Visible = False
Picture3.Visible = False
Picture4.Visible = False
Picture5.Visible = False
Picture6.Visible = False
Picture7.Visible = False
Picture8.Visible = False
Picture9.Visible = False
Picture10.Visible = False
If Combo1.Index = "Mechanical Controls" Then
Picture1.Visible = False
Picture2.Visible = False
Picture3.Visible = False
Picture4.Visible = False
Picture5.Visible = False
Picture7.Visible = False
Picture8.Visible = False
Picture9.Visible = False
Picture10.Visible = False
Picture6.Visible = True
If Combo1.Index = "Risk Rating" Then
Picture1.Visible = False
Picture2.Visible = False
Picture3.Visible = False
Picture4.Visible = False
Picture5.Visible = False
Picture6.Visible = False
Picture7.Visible = False
Picture8.Visible = False
Picture10.Visible = False
Picture9.Visible = True
If Combo1.Index = "Selected Contractors" Then
Picture1.Visible = False
Picture3.Visible = False
Picture4.Visible = False
Picture5.Visible = False
Picture6.Visible = False
Picture7.Visible = False
Picture8.Visible = False
Picture9.Visible = False
Picture10.Visible = False
Picture2.Visible = True
If Combo1.Index = "Outcome Of Controls By Species" Then
Picture1.Visible = False
Picture2.Visible = False
Picture3.Visible = False
Picture4.Visible = False
Picture5.Visible = False
Picture6.Visible = False
Picture8.Visible = False
Picture9.Visible = False
Picture10.Visible = False
Picture7.Visible = True
If Combo1.Index = "Enviro Report By Species" Then
Picture1.Visible = False
Picture2.Visible = False
Picture3.Visible = False
Picture5.Visible = False
Picture6.Visible = False
Picture7.Visible = False
Picture8.Visible = False
Picture9.Visible = False
Picture10.Visible = False
Picture4.Visible = True
If Combo1.Index = "Registered Weed Infestations By Species" Then
Picture1.Visible = False
Picture2.Visible = False
Picture3.Visible = False
Picture4.Visible = False
Picture5.Visible = False
Picture6.Visible = False
Picture7.Visible = False
Picture9.Visible = False
Picture10.Visible = False
Picture8.Visible = True
If Combo1.Index = "Registered Weeds By Location" Then
Picture1.Visible = False
Picture2.Visible = False
Picture3.Visible = False
Picture4.Visible = False
Picture6.Visible = False
Picture7.Visible = False
Picture8.Visible = False
Picture9.Visible = False
Picture10.Visible = False
Picture5.Visible = True
If Combo1.Index = "Costs By Species" Then
Picture1.Visible = False
Picture2.Visible = False
Picture4.Visible = False
Picture5.Visible = False
Picture6.Visible = False
Picture7.Visible = False
Picture8.Visible = False
Picture9.Visible = False
Picture10.Visible = False
Picture3.Visible = True
Thanks
ZeroAnarchy
Experience is a wonderful thing. It enables you to recognize a mistake
when you make it again.