Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • 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!
  • Students Click Here

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

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Select Expert Formula for Parameter

Select Expert Formula for Parameter

Select Expert Formula for Parameter

Does anyone know how to make this work? I need this field to be equal to the parameter ?Site, but I also want it to be equal to -1 or -2. It's saying I need it to be an array. Basically it's to chart limits which are for site =-1 and/or site=-2 plus the actual site. The Site parameter is dynamic so I don't know if that matters.

{RPT_EM_RESULTS_TREND_LOC_V.site_id} in [ {?Site},-1,-2]

It works in the Editor if I do, but once I click "Select Expert" it gives me an error.
({RPT_EM_RESULTS_TREND_LOC_V.site_id} = {?Site} or {RPT_EM_RESULTS_TREND_LOC_V.site_id} in[ -1,-2])

RE: Select Expert Formula for Parameter

It sounds like you have {?Site} set up as a multi-value parameter. If you set up the record selection formula as shown at the end of your post it should work without error, although I would replace the "=" with "in". I personally never use the select expert (unless I'm using the subreport expert), but instead always go to report->selection formula->record and enter the selection criteria there.

Your selection formula will still only return the values that appear in the site_id field in your database, so if -1 and -2 are not found in the database, they will not appear regardless of your selection formula. If this is the case, there is a solution where you add -1 and -2 to your dataset using a union statement within a command. Let me know if this is the case and you need help with that.


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

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! Already a Member? Login

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