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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Narrowing Selection Critera based on Parameters

Status
Not open for further replies.

bkanetek

MIS
Nov 19, 2001
1
US
I am trying to cut the run-time down on a report by altering the SQL sentence for my report based on used defined parameters. I'm not having any luck and need some advice on what my options are. If I alter the SQL sentence directly and refresh the report, it works great, but if I use the Select Expert, the report fetches the entire table and then limits the data displayed to those rows that match my criteria. I'm trying to speed this up by having it select only those rows that meet my criteria on the front side.

Any ideas would be appreciated.
 
it is quite simple really if there are only equal joins the following are sames of the statements that could be used in a Record Select Formula:

{table.field1} = {?param1} and
{table.datefield} >= {?StartDateParam} and
{table.datefield} < {?EndDateParam} and
{Table.field2} in {?Multi-selectParam}

If it is possible, Crystal will add these statements to the SQL and push the processing to the server...if this is not possible then the retreived records will get a secondary filtering from statements not pushed down...there is no need to directly modify the SQL.


If you have problems just post your Record Select Formula and we shall see what the problem is

Hope this helps
Jim




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top