Results 1 to 2 of 2

Thread: Crystal Report - Subreports Selection Formula

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2000
    Location
    Indonesia
    Posts
    59

    Crystal Report - Subreports Selection Formula

    please help me

    i need to change All the subreport selection formula , same as the main report. I Try this code but doesn't works.


    'sel is string which the selection formula
    Cr.SubreportToChange = ""
    Cr.SelectionFormula = Sel
    iSub = Cr.GetNSubreports
    If iSub > 0 Then
    For iCtr = 0 To iSub - 1
    StrSub = Cr.GetNthSubreportName(iCtr)
    Cr.SubreportToChange = StrSub
    Cr.SelectionFormula = Sel
    Next iCtr
    End If

    that code is working only if there is only one table in a main or subreport. that doesn't work in more table !

    please help me , how to do this ?

    thanks very much

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    what crystal report engine are you referencing?? crystal 8? 7? the one that came with VB?

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