hi
I have two combo boxes in my form. When the user selects in first combo box the second combo should have the corresponding values.
Eg:
First combo has 4 value list
1.Type
2.Channel
3.Status
4.Group
Second combo should show all the types that are available when user selects "Type" in first combo.
And i have written a code in First combo's Before Update event as follows
If (Combo1 = "Type"
Then
Combo2.AddItem "EMAIL"
Combo2.AddItem "MAIL"
Combo2.AddItem "WEB"
Else
If (Combo1 = "Status"
Then
Combo2.AddItem "TARGETED"
Combo2.AddItem "Aproved"
End If
But when i select "Type" in first combo i am getting all three in to second combo, but when i select "Status" its showing all three from Type and twp from Status. So all together five are there in combo2. So what i need is if i select Status it should show only two that i have, if i selct Type it should show only 3 that i have. Any help?
I have two combo boxes in my form. When the user selects in first combo box the second combo should have the corresponding values.
Eg:
First combo has 4 value list
1.Type
2.Channel
3.Status
4.Group
Second combo should show all the types that are available when user selects "Type" in first combo.
And i have written a code in First combo's Before Update event as follows
If (Combo1 = "Type"
Combo2.AddItem "EMAIL"
Combo2.AddItem "MAIL"
Combo2.AddItem "WEB"
Else
If (Combo1 = "Status"
Combo2.AddItem "TARGETED"
Combo2.AddItem "Aproved"
End If
But when i select "Type" in first combo i am getting all three in to second combo, but when i select "Status" its showing all three from Type and twp from Status. So all together five are there in combo2. So what i need is if i select Status it should show only two that i have, if i selct Type it should show only 3 that i have. Any help?