1 1
2 1
3 1
2 1
1 is for absent
2 is for Leave
3 for MEdical
i have a dropdown list of sector in the form ,i want that when user click on any dropdown list each an event is fire that return no of absent leave,medical in to the textbox of the form.
txt.absent.text = sectorAbsent.TOSTRING();

Wim SturkenboomPosted Nov 25, 2014, 6:07 AM
The query? The below will count the number of records having a specified value (from the combobox).
select Count(EmployeeStatusType) from employees
where EmployeeStatusType = valuefromcombobox
If it's something else, please elaborate.