CString strSql;

strSql.Format("select * from product where cpmc='%s'",dlg.m_strCpmc);
if(!m_productset.Open(AFX_DB_USE_DEFAULT_TYPE,strSql))
{
MessageBox("数据库操作错误","错误");
return;
}
m_productset.Edit();
m_productset.m_cpmc = dlg.m_strCpmc;
m_productset.m_uid = "1";
m_productset.m_sl = dlg.m_nSl;
m_productset.m_lx = dlg.m_strLx;
m_productset.m_je = dlg.m_nJe;
m_productset.m_sccj = dlg.m_strSccj;
m_productset.m_xfrq = xfrq;
m_productset.m_bz = dlg.m_strBz;
m_productset.m_lrrq = lrrq;
m_productset.Update();
m_productset.Close();为什么就是不行呢。。我从对话框里获得输入框的内容传给productset对应数据库的字段。为什么就修改不起呢。