Results 1 to 2 of 2

Thread: Dataenvironment & commands

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Posts
    10
    Hello Guys, How to navigate the records of child command??
    I only know how to navigate the tables of Parent command but not for child.

    DataEnvironment1.rscommand1.movenext

    What bout child command?
    I tried this but cannot work
    DataEnvironment1.recordsets("rscommand2").movenext??




  2. #2
    New Member
    Join Date
    Aug 2000
    Location
    Fresno,CA
    Posts
    3

    Accessing Child Commands Objects

    According to a White Paper provided by Microsoft, accessing child command objects requires that you create a Recordset obejct in code:

    Dim|Public recordset1 as ADODB.Recordset

    You must then assign the recordset object to the Parent-Command-object field that references the Child Command

    Set recordset1 = DataEnvironment1.rscommand1.Fields("childcommand1").Value

    Recordset1 now contains the records that correspond to the child command.
    If you declare Recordset1 in the General section of the command DataEnvironment1 module and include "WithEvents" i.e.

    Public WithEvents recordset1 as ADODB.Recordset

    You have access to its events and can place code in the events.



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