错误:列名‘姓名’不明确,未能准备语句! 问题出在m_strFilter吗?
//下列代码:在修改记录对话框中,通过列表框中的姓名,获取此人的课程成绩
int index;
CString str;
str.Empty();
index=m_showname.GetCurSel();
m_ListName.GetText(index,str);//获取选择的姓名
CRESUMESet m_pSet;
m_pSet.m_strFilter.Format("[姓名]='%s'",str);//有问题,怎么改?
m_pSet.Open();
{
m_name=m_pSet.m_sname;
m_graphic=m_pSet.m_graphic;
m_vc=m_pSet.m_vc;
m_courcedesign=m_pSet.m_courcedesign;
UpdateData(FALSE);
}
m_pSet.Close();