CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 1998
    Location
    Philadelphia, USA
    Posts
    11

    Data Environment

    I have set up a connection to an MDB
    I have a Parent Command "Parents"
    I have added a child command "Children"
    It works beautifully.....the "linked" data moves beautifully
    I wish to add records to the parents and the children
    I have access to all of the ADO methods on rsParents (addnew,update,bookmark etc)
    I cannot get accesss to the same methods for the child rsChildren
    Note:I have set up returning recordset on
    advanced tab

    I have also tried following with no success
    dim rsKids as adodb.recordset
    set rskids = rsparents.field?("CHILDREN")

    Still no luck
    This is a great forum
    I hope I can contribute also
    Thanks
    Rob Hermans
    Philadelphia


  2. #2
    Guest

    Re: Data Environment

    Hi Rob,

    You can get access to the next recordset by calling the "NextRecordset" method which is part of the the ADODB.Recordset object.

    E.g.
    Dim rsKids As ADODB.RecordSet
    Set rsKids = rsParents.NextRecordset

    Hope this helps.

    Vick Soulios



  3. #3
    Join Date
    Nov 1998
    Location
    Philadelphia, USA
    Posts
    11

    Re: Data Environment

    I have TWO related recordsets - is there a way to distinguish between WHICH next I want??
    Thanks for your help!!!


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