Hi, I can use the Seek function of the Recordset object of Ado. it is like this:
_variant_t var = (_bstr_t)"Test";
pRecordset->PutIndex("Index1");
pRecordset->Seek(var, adSeekFirstEQ);
if(pRecordset->GetEndOfFile() == TRUE) // not found
...
but how can I seek for more then one field?
in MSDN it is written of an array of varient values, but this does not work:

_variant_t var[1];
var[0] = (_bstr_t)"Test";
var[1] = (_bstr_t)"Hello";

pRecordset->PutIndex("Index2");
pRecordset->Seek(var, adSeekFirstEQ);
if(pRecordset->GetEndOfFile() == TRUE) // not found


thank you, armin