dao链接access数据库,查询的问题!
dao链接access数据库;
表word中两个字段Ptype和Vtype,字段内是英文单词,如"angriest"和"angry"
现已知Vtype字段,查询Ptype字段的值
CString MyDictionary::GetPtypeofWord(CString w)
{//获取一个单词的原型
COleVariant kw(w,VT_BSTRT),kf;
pword->SetCurrentIndex("Vtype");
if(pword->Seek("=",&kw))
{
kf=pEword->GetFieldValue("Ptype");
return kf.bcVal;
}
}
那里错了?谢谢!