Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing more than one parameter value to report.

Status
Not open for further replies.

garry1

Programmer
Dec 6, 2002
49
0
0
US
Hi,

I am trying to pass more than one value to the report and it is returning me a blank page every time I run the report.Following is my sql statment

select * from test_data where distr in (&p_1)

and I am passing values as (3011,3058) to the report when I try to run my paper layout. But I am not having luck with the data. I know for sure there is data which matches this values in the DB. Any help is very much appreciated.

Thanks.
 
Make sure you are passing the parameter as characters, i.e. in quotes: '(3011,3058)' .
 
Hi Nagornyi,

I tried your tip, but still it is causing me the same problem.

Thanks.
 
Try using the Ltrim and Rtrim on distr as there may be leading or most likely trailing spaces on the variable.
 
Could you please run separately 3 queries using TOAD or SQL+ by copying and pasting the text from here, and post the results.
Code:
select * from test_data where distr in (3011)
Code:
select * from test_data where distr in (3058)
Code:
select * from test_data where distr in (3011,3058)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top