public void changeStatus()
{
connect();
SqlCommand command = new SqlCommand("UPDATE Member SET Mem_Note='หมดอายุ' WHERE Mem_Date_out < GETDATE()-1 and Mem_Note='ชำระเงินแล้ว' ", con);
command.ExecuteNonQuery();
SqlCommand command1 = new SqlCommand("UPDATE Member SET Mem_Note='หมดอายุ.' WHERE Mem_Date_out < GETDATE()-1 and Mem_Note='ค้างชำระ' ", con);
command1.ExecuteNonQuery();
SqlCommand command2 = new SqlCommand("UPDATE Member SET Mem_Note='ชำระเงินแล้ว' WHERE Mem_Date_out > GETDATE()-1 and Mem_Note='หมดอายุ' ", con);
command2.ExecuteNonQuery();
SqlCommand command3 = new SqlCommand("UPDATE Member SET Mem_Note='ค้างชำระ' WHERE Mem_Date_out > GETDATE()-1 and Mem_Note='หมดอายุ.' ", con);
command3.ExecuteNonQuery();
}