CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    ADO - Recordset Query Not Executing

    Hi,

    I am opening the recordset as follows

    rsHistExm.Open "select distinct clg_id from history_examination_view order by clg_id ", gDbServer.ConnectionObj.ConnectionString, adOpenKeyset, adLockOptimistic

    In this table named "History_Examination_view" records present is 1.

    After execution of this query it is returning 0. But when the program in Break Mode placed exactly on this statement it is returning 1.

    Why this problem is arising.. It seems to be very strange that when the break point is kept it is working, and when removed no process is
    taking place.

    Pl let me know immediately.

    Regards

    Prasad



  2. #2

    Re: ADO - Recordset Query Not Executing

    send me the code, i think probablity of the recordset being change after that particular line its getting reset so, make it fast to make it work for u

    reg



    The Ultimate Solution Providers

    Authors

    Sriman & Jayaraman

    Email : [email protected]
    [email protected]

    Hand Phone : +(6) 016 2237147 (Malaysia)

  3. #3
    Join Date
    Apr 1999
    Location
    Netherlands
    Posts
    181

    Re: ADO - Recordset Query Not Executing

    If it works when you step-through the code, and it doesn't at runtime, use doevents after opening the recordset.

    Crazy D @ Work :-)

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured