public void SearchUsers(int Method, String key)
    {
        String Type = "ID2";
        key = key.trim().replace(";", "");
        if (Method == 1)
        {
            key = key.trim().replace(" ", ";");
            Type = "Name";
        }
        
        User_Controller UC = new User_Controller("localhost", DBName, DBAccount, DBPwd);
        ReturnedUsers = UC.SearchUser(key, Type);
        if (ReturnedUsers.size()<=0)
        {
            tbxError.setText("No users found");
            String[][] row=new String[1][4];
            String[] column={"User ID","First Name","Last Name", "User Type"};
            tblUsers.removeAll();
            DefaultTableModel tmd=new DefaultTableModel(row,column);
            tblUsers.setModel(tmd);
        }
        else
        {
            tbxError.setText(String.valueOf(ReturnedUsers.size())+" user(s) returned.");
        }
        ShowUsers();
    }