I know how to read string values from Access db,
like:

CString strFields[5];
COleVariant varstring
for(field=0; field<5;field++)
{
recordset.GetFieldValue(field, varstring);
strFields[field]=V_BSTRT(&varstring);
}

then the string value from db. goes into strFields

But what if I know the strFields, and want write to update the db.
Does anyone know the adverse procedure?

Please read the tutorial mentioned in your other thread.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.