Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB7.x VB8.0 VB9.0 VB VB10.0 Access , +
Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
        Dim str As String
 
        str = "Select Datee From Schedules Where BusID = '" + ComboBox1.SelectedValue + "' "
        con.Open()
 
    End Sub
 

i am selecting value of busid from combobox1 and i want that changes should reflect in combobox2
according to busid i selected
Posted 22-Apr-13 9:05am
Comments
DinoRondelly at 22-Apr-13 14:13pm
   
Ok what are you stuck on?
Polarfuze at 22-Apr-13 14:17pm
   
i dunno the code to make it happen
 
"i am selecting value of busid from combobox1 and i want that changes should reflect in combobox2
according to busid i selected"

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

This will show you how to query the database,
 
http://social.msdn.microsoft.com/Forums/en-US/vbide/thread/e4344a25-93e5-40d4-a97d-c5ee0b573577/[^]
 
And this will show you how to bind the results to your combo box,
 
http://vb.net-informations.com/dataset/bind-combobox.htm[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 George Jonsson 175
1 Kornfeld Eliyahu Peter 169
2 Zoltán Zörgő 139
3 PIEBALDconsult 130
4 OriginalGriff 120
0 OriginalGriff 6,165
1 DamithSL 4,658
2 Maciej Los 4,107
3 Kornfeld Eliyahu Peter 3,649
4 Sergey Alexandrovich Kryukov 3,342


Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 22 Apr 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100