Hey Guys,
I'm new to VB.NET and looking for some help with combo boxes. I was wondering if it is possible to link 2 combo boxes to each other based on user selection?
Example:
Table 1 - Dept
Dept ID (PK)
Dept Name
Section ID
Table 2 - Section
Section ID (PK)
Section Name
If the user selects Dept Name "Bakery" from the first combo box the second combo box should fill with the appropriate Section Name i.e. "Bread", "Cakes" etc...
I am using VS2008 and the DB is SQL Server 2008. Both combo boxes are currently bound to the above Tables and displaying all Dept and Section Names.
Any help would be appreciated.
Thanks,
Orbie.
I'm new to VB.NET and looking for some help with combo boxes. I was wondering if it is possible to link 2 combo boxes to each other based on user selection?
Example:
Table 1 - Dept
Dept ID (PK)
Dept Name
Section ID
Table 2 - Section
Section ID (PK)
Section Name
If the user selects Dept Name "Bakery" from the first combo box the second combo box should fill with the appropriate Section Name i.e. "Bread", "Cakes" etc...
I am using VS2008 and the DB is SQL Server 2008. Both combo boxes are currently bound to the above Tables and displaying all Dept and Section Names.
Any help would be appreciated.
Thanks,
Orbie.
Comment