|
-
Apr 22nd, 2004, 11:40 PM
#1
Thread Starter
New Member
Combo Box
I have a combo box that displays items from a database when the form is loaded.
When the user selects one of the items from the list I then need to display items from another database in a list box.
Combo box is cboCategory
I tried if cboCategory="XXXXX" then
etc
Any help to get me in the right direction would be appreciated.
-
Apr 23rd, 2004, 12:15 AM
#2
You must populate the listbox in the Change event of the combobox.
You check the combobox value like this:
VB Code:
Combo1.List(Combo1.ListIndex)
Depending upon the value there, you can populate your listbox.
-
Apr 23rd, 2004, 02:44 AM
#3
-
Apr 23rd, 2004, 03:42 AM
#4
Typo. 
No, really... typo. <--- blushing.
-
Apr 23rd, 2004, 08:19 AM
#5
The change evenmt is ONLY fired if the combo is of a standard combo style, and only if you keypress in the combo.
If you drop the list down and select an entry then ONLY the click event gets fired.
If the combo is a drop down list then the change event NEVER gets fired, even if you keypress on it.
Just thought I'd point that out...but you lot knew that anyways 
Woka
-
Apr 26th, 2004, 06:06 PM
#6
Thread Starter
New Member
So from what I can get from the above posts when you select an
item from a dropdown combo box you need the on click event.
Does that mean I dont need to have any logic in my text box. ie do I put all the logic in my combo box so then when something is selected it displays items in the text box?
-
Apr 27th, 2004, 07:31 AM
#7
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|