Hi, I would like to ask how to pass "select count" query value into variable?
string workstr = "SELECT COUNT(Indicator)FROM PunchIn WHERE EmployeeName='" + selectedItem + "'AND Months='" + selectedItem1 + "'";
AccessDb_Cmd.ExecuteNonQuery(workstr, Access_Db);
int count = (int)??.ExecuteScalar();//what should put into "??" ?