Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Within the first afternoon I found 2 of the 3 needed solutions, and the 3rd came to me over the weekend!..."

Geography

Where in the world do Tek-Tips members come from?
sfabry (TechnicalUser)
9 May 12 15:43
I have not found a specific answer to this question:  
can you pass a value from a subreport to main report and use the passed value in group or record selection?  is this what is meant by 'parameter' or is it strictly "?parameters" they cannont be used in?
lbass (TechnicalUser)
9 May 12 21:35
Yes, you can use parameters in the sub record or group selection formulas. You can't use shared variables though in these areas. If you link a sub based on a field in the main report, it will appear as a parameter like this in the record selection formula:

{subrpt.field}={?pm-maintable.field}

But you can also link parameters created in both main and subreports to each other, and then use them in selection formulas.

{table.field}={?Parameter}

-LB
sfabry (TechnicalUser)
10 May 12 11:18

the first instance i am familiar with but can you explain how you would link parameters to use in selection formulas?

lbass (TechnicalUser)
11 May 12 16:22
In the edit subreport links screen, choose the parameter at the top and then in the lower left, use the dropdown to select {?Parameter} instead of the default {?pm-?Parameter}. This means there will only be one prompt, but you still need to add and use the parameter to the selection formula in the subreport.

-LB
sfabry (TechnicalUser)
15 May 12 11:07
I am not sure if this will accomplish what I am trying to but am curious. My only choices under "subreport parameter to use" are blank, "Parameter Fields," and "?Pm.." So I am not sure what you are referring to?
I am trying to say, in the main report record selection, "if 'subreport field' (which is where i was trying to place a shared variable) = x then 'main report field' else "" "

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close