Sorry for sure it hast no put mehtod. It should work like this:
m_pRecordSetPtr->Properties->Item ("Update Resync")->Value =
adResyncAutoIncrement;
Hope it works now
Sebastian
> thx your reply
> m_pRecordSetPtr is a _RecordsetPtr
> but when i use the code you apply:
> m_pRecordSetPtr->Properties->Item ("Update Resync")
> the error appear:
> error C2774: 'Item' : no 'put' method is associated with this property
> can u tell me why? bless u:-)
> > Hi,
> > > following is my code:
> > > m_pRecordSetPtr->Properties("Update Resync") =
> > > adResyncAutoIncrement;
> > what type is m_pRecordSetPtr ? Is it a CComPtr <_Recordset> ?
> > If yes do it like that
> > CComPtr <Properties> spProps
> > CComPtr <Propert<> spProp
> > m_pRecordSetPtr->get_Properties (&spProps)
> > spProps->get_Item (CComVariant (L"Update Resync), &spProp)
> > spProp->put_Value (adResyncAutoIncrement)
> > This code is not tested (but should work), and has no error handlers
> > If m_pRecordSetPtr is a _RecordsetPtr
> > m_pRecordSetPtr->Properties->Item ("Update Resync") should work
> > HTH
> > Sebastian