TommyF
Technical User
- Oct 28, 2001
- 104
I have a combo box on my form which is a list of job numbers from 2 tables. I also have two list boxes on my form that fill up with Data when a Job number is selected from the combo box. What I want to happen is, if one of the list boxes is empty after you have selected from the combo box then I don't want it to be visable.
At the moment I have the follwonig code in the click event on the combo box, but it does not seem to work.
If me.list8 = "" Then
me.list14.visible = True
me.list8.visible = False
Else
me.list14.visible = False
me.list8.visible = True
End If
I can get it to sort of work and one of the list boxes will be visible but when I select another job Number which should put data in the other list box nothing happens.
Hope you can help.
At the moment I have the follwonig code in the click event on the combo box, but it does not seem to work.
If me.list8 = "" Then
me.list14.visible = True
me.list8.visible = False
Else
me.list14.visible = False
me.list8.visible = True
End If
I can get it to sort of work and one of the list boxes will be visible but when I select another job Number which should put data in the other list box nothing happens.
Hope you can help.