CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 4 of 4

Thread: GetVieldValue() with Empty Filed

  1. #1
    Join Date
    Aug 2009

    GetVieldValue() with Empty Filed

    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,,,,

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Hanover Germany

    Re: GetVieldValue() with Empty Filed

    1. "Empty" or Null?
    2.Show your actual code producing error. What error?
    Victor Nijegorodov

  3. #3
    Join Date
    Jun 2006

    Re: GetVieldValue() with Empty Filed

    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.

  4. #4
    Join Date
    Aug 2009

    Re: GetVieldValue() with Empty Filed

    thanks for your reply....

    i solved my problem. .

    1. its empty record

    i use getrecordcount() to solve it, i use if (record > 0) then........

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)