Hi there,
on a form I put the combo with few values "AAA", "BBB", and "CCC". Depending of combo selected value then in textbox is displayed proper text.
For Combo1:
Rowsource: AAA,BBB,CCC
Rowsourcetype=1
In order to set up default value for combo and avoid blank value for combo I put in Activate events of form: Thisform.combo1.ListIndex=1. In InteractiveChange of combo1 I wrote
but when I started form combo get wanted value (AAA) then in text3 was not any value (I expected Director), seems like InteractiveChange of Combo1 isn't fired? What I shall to set up in order to get this functional? Thanks for your time.
There is no good nor evil, just decisions and consequences.
on a form I put the combo with few values "AAA", "BBB", and "CCC". Depending of combo selected value then in textbox is displayed proper text.
For Combo1:
Rowsource: AAA,BBB,CCC
Rowsourcetype=1
In order to set up default value for combo and avoid blank value for combo I put in Activate events of form: Thisform.combo1.ListIndex=1. In InteractiveChange of combo1 I wrote
Code:
DO case
CASE thisform.combo1.DisplayValue="AAA"
thisform.text3.Value="Director"
CASE thisform.combo1.DisplayValue="BBB"
thisform.text3.Value="Secretary"
CASE thisform.combo1.DisplayValue="CCC"
thisform.text3.Value="Driver"
endcase
There is no good nor evil, just decisions and consequences.