i tried to built aplication using Visual C++ 6.0, ODBC, CRecordset.
i have an error code caused GetFieldValue function did not support the Empty Set.
any solution ??
thanks for every thinks,,,,
Printable View
i tried to built aplication using Visual C++ 6.0, ODBC, CRecordset.
i have an error code caused GetFieldValue function did not support the Empty Set.
any solution ??
thanks for every thinks,,,,
1. "Empty" or Null?
2.Show your actual code producing error. What error?
Hi,
Here is the MSDN reference for the documentation of the method.
From what u have posted here it seems that ur recordset is null. Or u might be passing an null reference to one of the overloads of GetFieldValue() method here. Another mistake that is commonly made with this method is, passing of the wrong parameters altogether. I mean, make sure you are passing the correct name or index for the field. Some times the index and the data types won't match. Make sure to put the database connection open and close code in try...catch block.
Bhushan
thanks for your reply....
i solved my problem. .
1. its empty record
i use getrecordcount() to solve it, i use if (record > 0) then........