|
-
Jul 31st, 2002, 07:37 AM
#1
Thread Starter
Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|