hi, anyone can tell me how to use AddNew()?
i have a CRecordset object, and i use the statement below to open it:
recset.open(CRecordset::snapshot, tablename, CRecordset::appendOnly)
recset.AddNew()
recset.IP = ip;
recset.HostName = hostname;
IP and HostName are the field names in my table with "tablename",
but the compiler said IP and HostName are not the member of CRecordset.
then, what should i do to assign the values to each field of the table?
thanks a lot for your help!
regards,
kaya
i have a CRecordset object, and i use the statement below to open it:
recset.open(CRecordset::snapshot, tablename, CRecordset::appendOnly)
recset.AddNew()
recset.IP = ip;
recset.HostName = hostname;
IP and HostName are the field names in my table with "tablename",
but the compiler said IP and HostName are not the member of CRecordset.
then, what should i do to assign the values to each field of the table?
thanks a lot for your help!
regards,
kaya