[求助]Ado添加纪录为什么报错阿
void CDoctorDlg::OnAdd() { m_Record->MoveLast();
m_Record->Move(-1);
try
{
if(m_Name!=""&&m_Age!=0)
{
m_Record->PutCollect("name",_variant_t(m_Name));
m_Record->PutCollect("age",_variant_t(m_Age));
m_Record->Update();
AfxMessageBox("插入成功");
}
else
{
AfxMessageBox("请把信息添完整");
}
}
catch(_com_error e)
{
AfxMessageBox(e.ErrorMessage());
}
}
请问上面什么地方写得不具体么,怎么单击添加就报错呢???