Results 1 to 2 of 2

Thread: shape and append command data report

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2006
    Posts
    1

    Arrow shape and append command data report

    I am trying to fabricate a hierarchial recordset. I want to create two sibling recordsets below one parent. I do this all the time with regular queries but I can't figure out how to do it without a data provider. This is what I have so far:

    strShape = _
    "SHAPE APPEND NEW adChar(30) AS Foo, " & _
    " ((SHAPE APPEND NEW adChar(30) AS Bar) RELATE Foo TO Bar) AS FooBar, " & _
    " (( NEW adChar(30) AS FooFoo) RELATE Foo TO FooFoo) AS FooFooBar"

    The syntax is correct up to As FooBar in the second line.

    What I am after is this:

    +Foo
    +--FooBar
    +--FooFooBar

    NOT this:

    +Foo
    +-+FooBar
      +--FooFooBar

    So could someone please give me a hint. I can't be that far off.

    Thanks,
    Edit/Delete Message

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: shape and append command data report

    Each Child record needs a "Shape Append" command. Try this

    Code:
    strShape = _
    "SHAPE APPEND NEW adChar(30) AS Foo, " & _
    " ((SHAPE APPEND NEW adChar(30) AS Bar) RELATE Foo TO Bar) AS FooBar," & _
    " ((SHAPE APPEND NEW adChar(30) AS FooFoo) RELATE Foo TO FooFoo) AS FooFooBar"

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