2 zxcvbnm1234ws zxcvbnm1234ws 于 2013.08.27 23:27 提问

VC++ 向Access数据库插入数据

http://e.hiphotos.baidu.com/zhidao/pic/item/8644ebf81a4c510f7dc67fc56159252dd52aa5eb.jpg![CSDN移动问答][1]这是我拿messegebox打出来insert into语句的信息

向左转|向右转
这是提示的错误信息。

源码是hr=m_pConnection->Open(("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\rtxclentsdk20111formal.exe安装\Database2.mdb"),"","",adModeUnknown);
MessageBox( "insert into Database2(Theme,Content,Time,TiXing,ZhouYi,ZhouEr,ZhouSan,ZhouSi,ZhouWu,ZhouLiu,ZhouRi) values('"+m_EDIT1+"','"+m_NeiRong+"','"+Dingshi+"','"+Lcheck1+"','"+LZhouYi+"','"+LZhouEr+"','"+LZhouSan+"','"+LZhouSi+"','"+LZhouWu+"','"+LZhouLiu+"','"+LZhouRi+"')", "Info", MB_OK );
m_pConnection->Execute(_bstr_t("insert into Database2(Theme,Content,Time,TiXing,ZhouYi,ZhouEr,ZhouSan,ZhouSi,ZhouWu,ZhouLiu,ZhouRi) values('"+m_EDIT1+"','"+m_NeiRong+"','"+Dingshi+"','"+Lcheck1+"','"+LZhouYi+"','"+LZhouEr+"','"+LZhouSan+"','"+LZhouSi+"','"+LZhouWu+"','"+LZhouLiu+"','"+LZhouRi+"')"),NULL ,adCmdText);

哪位大神给看一下,先谢了。

Csdn user default icon
上传中...
上传图片
插入图片