ADOCE Find() problem
Mobile
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, :) I don't know what's wrong with below code, When I run this It always return the first record. :confused:
pRecCus->Find( _bstr_t("Code=" + strCusCode), 0, adSearchForward, 1L ); if( !pRecCus->adoEOF ) { m_List.SetItemText( i, 1, (LPCTSTR)((_bstr_t)pRecCus->GetFields()->GetItem(_variant_t("Name"))->Value) ); }
Regards, Hadi