运行时 弹出ado错误框,却是一个空的错误提示,
点确定后数据能正常显示,程序也能政常运行这是怎么回事??
大家帮我看看!

解决方案 »

  1.   

    syy64(太平洋) ( ) 
    void CAdoDlg::RefreshData()
    {
    m_adodc.SetRecordSource("select id,name AS 姓名,age AS 年龄 from ourtable");
    m_adodc.Refresh();
    }
    发现去掉 m_adodc.SetRecordSource("select id,name AS 姓名,age AS 年龄 from ourtable");后就不弹出那错误框了,
    这是为什么呢?
      

  2.   

    现在搞好了,修改了两处设置:
    command type 8-adcmdunknown
    recordsource select * from ourtable但为什么我以前设为2-tablecommandtype,ourtable 就不行呢
    这两个设置分别有什么意思呀??
    还请大家帮我解释一下,谢谢了!