Results 1 to 4 of 4

Thread: Real Disconnected Recordset

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2003
    Location
    Jakarta, Indonesia
    Posts
    36

    Real Disconnected Recordset

    I am experienced that Disconected Recordset is not really disconnected. What I expected when using Disconnected
    Recordset is really get disconnected from the Server.

    I use Data Bound Control like dbGrid tobe bound with this
    recordset, and do a little update to the record. I do expect
    that this not affected the server but it did.

    I think I miss understood the role of Disconnected recordset.
    Is there any way to get it work ?

    Please Help.

    Thanks.

  2. #2
    Frenzied Member swatty's Avatar
    Join Date
    Aug 2002
    Location
    somewhere on earth
    Posts
    1,478
    Depends.

    How do you fill your recordset, and how are you disconnecting ?
    Code:
    If Question = Incomplete Then
       AnswerNextOne
    Else
       ReplyIfKnown
    End If
    cu Swatty

  3. #3

    Thread Starter
    Member
    Join Date
    Mar 2003
    Location
    Jakarta, Indonesia
    Posts
    36
    Originally posted by swatty
    Depends.

    How do you fill your recordset, and how are you disconnecting ?
    VB Code:
    1. ' Connecting, cn is adodb.connection object
    2. set rs.activeconnection = cn
    3.  
    4. ' Disconnecting
    5. set rs.activeconnection = nothing

  4. #4
    Frenzied Member swatty's Avatar
    Join Date
    Aug 2002
    Location
    somewhere on earth
    Posts
    1,478
    Originally posted by xor_ax_ax
    VB Code:
    1. ' Connecting, cn is adodb.connection object
    2. set rs.activeconnection = cn
    3.  
    4. ' Disconnecting
    5. set rs.activeconnection = nothing
    It should work if you're disconnecting like you do.
    You cannot reconnect though with this recordset or the changes will be reflected.
    Code:
    If Question = Incomplete Then
       AnswerNextOne
    Else
       ReplyIfKnown
    End If
    cu Swatty

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