Hello!
I am using Crystal 9 with SQL Server...
I have a report with a parameter that selects data based on user selection of "ALL" or of five counters...one which pulls from one table and the other four are pulled from another table...these tables are set up exactly alike (down to column names) they just run at different intervals...
Can anyone help me set up my select statement so that it selects on this parameter? Right now if I select "ALL" it does display all counters but if I select any (one or more)of the counters individually through the param it doesn't give me any data...
Here is my code that I have inserted into the select expert:
{?Counter} = parameter to select counter
{@Counter Name} = counter name from 1st table
{@Counter Name 1} = counter name from 2nd table
Thank you for your time and consideration!
Boni
)
I am using Crystal 9 with SQL Server...
I have a report with a parameter that selects data based on user selection of "ALL" or of five counters...one which pulls from one table and the other four are pulled from another table...these tables are set up exactly alike (down to column names) they just run at different intervals...
Can anyone help me set up my select statement so that it selects on this parameter? Right now if I select "ALL" it does display all counters but if I select any (one or more)of the counters individually through the param it doesn't give me any data...
Here is my code that I have inserted into the select expert:
Code:
({?Counter} = "ALL" or {@Counter Name} = {?Counter} and {@Counter Name 1} = {?Counter})
{?Counter} = parameter to select counter
{@Counter Name} = counter name from 1st table
{@Counter Name 1} = counter name from 2nd table
Thank you for your time and consideration!
Boni
)