title: combobox items to the where clause
body: <p>I need to get all the datas from the combobox items, the items in the combobox are dates which will be coming from users also,</p>
  
  <p>this is for the payroll, so when the user input an employee ID all of the log datas or the attendance dates will appear then he can add it to the combobox, so the combo box will have items in date format which will be multiple,</p>
  
  <p>Now first is that i need to get all the datas from this combobox,</p>
  
  <pre><code>string query = 
      "SELECT SUM(MinuteWorked)/60 AS 'workhours' FROM payroll.attendance WHERE  Date='"+
      cmbDates.Items+"' AND EmployeeID='" + 
      lblEmpID.Text + "'";
  </code></pre>
  
  <p>I need to compare it and check all the Date in data base that matches the items from the combo box.</p>