Results 1 to 4 of 4

Thread: Crystal + VB

  1. #1
    Guest
    Hello,

    I'm making a report with Visual Basic.
    It is a really complicated report so I'm using subreports.
    I can't work with a DataEnvironment or via a databaselink in Crystal so I have to create a recordset in VB.
    I'm using a SHAPE-SQL. Can anybody tell how I have to open my recordset, because with the normal Open-statement I get the message "Invalid character: 'SHAPE'"


  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    curious..what is SHAPE-Sql ?
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  3. #3
    Guest
    For Example:

    SHAPE {SELECT ID, PostalCode, City FROM Cities)
    APPEND (SELECT ID, Name, Street, TelephoneNumber FROM Person)
    RELATE ID TO Person.CityID AS CommandPerson_City

    This is an easy way to make a complicated statement much more easier.
    But I don't know how I have to open the recordset.

  4. #4
    Hyperactive Member
    Join Date
    Apr 2000
    Location
    Sudbury, Ontario, Canada
    Posts
    274
    Are you sure Crystal Reports supports Data Shaping? I've never used data shaping with Crystal Reports, normally if I have a subreport I create another recordset for it.

    Code:
    rptcurrent.Database.SetDataSource rstTemp
    
    rptcurrent.subLastReport.OpenSubreport.Database.SetDataSource rstReport

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