First id look for some particular thread which is similar to my app, but i stumble on an empty wall, here's what i want to do i have combo1 and combo2 , when the user select combo1 and choose a particular list on it " combo1" eg.
here is list in combo1 ----- Action
Suspence
Thriller
Drama
when the user select "Action"
combo 2 would display all the list in "Action" Movie
------Die Another Day
------Italian Job
------MI3
please see attached file thank you once again.
------------------------------------------
Private Sub Combo1_DropDown()
Combo1.Clear
Combo1.AddItem "Action"
Combo1.AddItem "Drama"
Combo1.AddItem "Comedy"
End Sub
Last edited by d3gerald; Mar 30th, 2006 at 01:34 AM.
On error goto Trap
Trap:
in case of emergency, drop the case...
****************************************
If this post has been resolved. Please mark it as "Resolved" by going through the "Thread Tools" above and clicking on the "Mark Thread Resolved" option. if a post is helpful to you, Please Rate it by clicking on the Rate link right below the avatar
Private Sub Combo1_Click()
Combo2.Clear
If Combo1.Text = "Action" Then
'ad list of action films here
Combo2.AddItem "Die Another Day"
Combo2.AddItem "Italian Job"
Combo2.AddItem "MIB"
ElseIf Combo1.Text = "Drama" Then
Combo2.AddItem "alone"
Combo2.AddItem "my foe"
Else
the problem lies with the elseif you have after the else. you cannot put elseif after else.
yet you can do the other way around
elseif.....
elseif....
else
then also make sure that if you have an if opening statement, you must have an end if as its closing
On error goto Trap
Trap:
in case of emergency, drop the case...
****************************************
If this post has been resolved. Please mark it as "Resolved" by going through the "Thread Tools" above and clicking on the "Mark Thread Resolved" option. if a post is helpful to you, Please Rate it by clicking on the Rate link right below the avatar
Private Sub Combo1_Click()
Combo2.Clear
If Combo1.Text = "Action" Then
'ad list of action films here
Combo2.AddItem "Die Another Day"
Combo2.AddItem "Italian Job"
Combo2.AddItem "MIB"
ElseIf Combo1.Text = "Drama" Then
Combo2.AddItem "alone"
Combo2.AddItem "fear"
ElseIf Combo1.Text = "Comedy" Then
Combo2.AddItem "bruce"
Combo2.AddItem "stuart little"
Else
End If
End Sub
Private Sub Form_Load()
Combo1.Clear
Combo1.AddItem "Action"
Combo1.AddItem "Drama"
Combo1.AddItem "Comedy"
End Sub
walla thanks master i got it right your heaven sent....
i hope this thread can help other too.