Results 1 to 3 of 3

Thread: [RESOLVED] parameter to subreport from main report (urgent)

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2002
    Posts
    94

    Resolved [RESOLVED] parameter to subreport from main report (urgent)

    Hello Friends,

    I've two probs in crystal report

    First is regarding sub report. See I got Invoice and next payment schedule for student. When I print Invoice I want to display data if payment schedule which shows next payment schedules. this data is stored in one different table (tblPaymentSchedule) and Invoice is stored in (tblInvoice). Now when I select a student's name , it should display invoice as well as next payment schedule. I've created two reports.
    1. Invoice
    2. payment schedule

    So In short, I want to link subreport with main report using parameter. And I don't know how to do link.


    I am using payment schedule as subreport in invoice report and page footer section. when i tried to print it prints all the data from payment schedule but not of selected student whose invoice i am print. plz help me

    VB Code:
    1. With crInvoice
    2.         .Connect = strConn
    3.         .ReportFileName = App.Path & "\Reports\Invoice.rpt"
    4.         .SelectionFormula = "{tblPayment.Receiptno}='" & sInvNo & "'"
    5.         .WindowTitle = "Invoice"
    6.         .WindowState = crptMaximized
    7.         .Destination = crptToWindow
    8.         .Action = 1
    9.     End With
    Second, I am storing all these report files in one folder and displaying using connect and reportfilename property. But i don't want to change layout of the report to my client if they've crystal report installed in their machine. so plz tell me how to do that.


    thx

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

    Re: parameter to subreport from main report (urgent)

    In Crystal.

    Right-Click the SubReport object.
    Select Change SubReport Links.
    Choose the field from the Main report that you want to pass to the subreport.
    In bottom right corner of dialog box, select the field in the subreport.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Apr 2002
    Posts
    94

    Re: parameter to subreport from main report (urgent)

    thx brucevde.

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