Dynamic bindnig CDaoRecordset

Hi,

I read TN053, a sample of dynamic binding:

COleVariant varFieldValue1(_T("Microsoft"),VT_BSTRT)
rs.SetFieldValue(_T("Customer_ID"),varFieldValue1);
rs.Update();

that is for CString field type. If the field is long, how do we do dynamic binding?

Thanks in advance.

Regards,
Ivan
[338 byte] By [Ivan GH] at [2007-11-17 11:49:58]
# 1 Re: Dynamic bindnig CDaoRecordset
Hi,
I guess this should be it..?

COleVariant varFieldValue1(1001, VT_I4); // 1001 being the value
rs.SetFieldValue(_T("Customer_ID"),varFieldValue1);
rs.Update();


Let me know if got helped. If you got helped pls rate!!!

John
Indian_Techie at 2007-11-10 8:06:52 >