StrSql = "select sum(convert(int,check_number)) as check_number,sum(convert(int,income)) as income from toshi_dict where toushi_time<='";
StrSql += strDayEnd + "' and toushi_time>='" + strDayStart + "'";
try{
pRs = m_pConnection->Execute((_bstr_t)strSql,NULL,adCmdText);
}
catch(_com_error& e) {
CString errormessage;
AfxMessageBox("查询错误");
errormessage.Format("数据库操作!\r\n错误信息:%s",e.ErrorMessage());
return;
}
//如果统计结果没有

    if (pRs->EndOfFile)
return;  ///执行到这里如果没查出来他不RETURN!,怎么回事?