jim enright
March 22nd, 2007, 10:04 AM
using vc++2005 and ADO to access MSAccess tables.
using the following style (for a record with two fields: k1,k2 say) to update
fields sequentially:
variant.vName.SetString("k1");
variant.VValue.SetString("a");
RecordSetPtr->Update(variantvName,vValue);
variant.vName.SetString("k2");
variant.VValue.SetString("b");
RecordSetPtr->Update(variantvName,vValue);
would like to update all fields in a single operation - ie set all field values
first then a single update command.
look all over the place for doucmentation - much of it suggests
i can use lists of some sort in the update command eg:
RecordSetPtr->Update({k1,k2},{"a","b"});
but i can never get any attempts at this to compile nor have i found code esamples in the documentation.
how is this done ? pls use above example.
thanks in advance
using the following style (for a record with two fields: k1,k2 say) to update
fields sequentially:
variant.vName.SetString("k1");
variant.VValue.SetString("a");
RecordSetPtr->Update(variantvName,vValue);
variant.vName.SetString("k2");
variant.VValue.SetString("b");
RecordSetPtr->Update(variantvName,vValue);
would like to update all fields in a single operation - ie set all field values
first then a single update command.
look all over the place for doucmentation - much of it suggests
i can use lists of some sort in the update command eg:
RecordSetPtr->Update({k1,k2},{"a","b"});
but i can never get any attempts at this to compile nor have i found code esamples in the documentation.
how is this done ? pls use above example.
thanks in advance