Waheed2008
Registered User.
- Local time
- Today, 10:57
- Joined
- Jul 17, 2008
- Messages
- 57
Hello everybudy
I have got a problem and I want help from some buddy.
I have two tables Table1 & Table2. Table1 has two fields ID and Department. Table2 has 3 fields ID, Employee & Department.
In a form, I have 2 Combo Boxes cmbDept and cmbEmp. I populate cmbDept from Table1 with departments. Now I want that when I select Department-1 from cmbDept, all the employees of Department-1, from Table2, are populated in cmbEmp. Similerly, When I select Department-3 in cmbDept, employees of Department-3 are populated in cmbEmp. Employee list in Combo Box should be dependent on Department selected. The employees of selected department should be displayed in cmbEmp.
How can I do that?? I shall realy appriciate for response.
Thanks
I have got a problem and I want help from some buddy.
I have two tables Table1 & Table2. Table1 has two fields ID and Department. Table2 has 3 fields ID, Employee & Department.
In a form, I have 2 Combo Boxes cmbDept and cmbEmp. I populate cmbDept from Table1 with departments. Now I want that when I select Department-1 from cmbDept, all the employees of Department-1, from Table2, are populated in cmbEmp. Similerly, When I select Department-3 in cmbDept, employees of Department-3 are populated in cmbEmp. Employee list in Combo Box should be dependent on Department selected. The employees of selected department should be displayed in cmbEmp.
How can I do that?? I shall realy appriciate for response.
Thanks