I am interested in dynamically changing the SQL statements as the report is refreshed each time. Many of our reports have 10+ parameters for the user to respond to. Sometimes they want to ignore a certain parameter like Order # and have the report return all Order #'s. To accomplish this, I have done the following:
If isnull(?order#) then true
Else table.field = ?order#
This works quite well but it doesn't update the where clause when you go to Show SQL Query. In some cases I have noticed the report runs very fast and in others it takes a long time. I assume it is pulling all records and then executing the record selection formula when it takes a long time. Is there any way to avoid this.
Lastly, I am not familiar with the Edit Group Selection Formula. What is involved there and what impacts does it have. [sig][/sig]
If isnull(?order#) then true
Else table.field = ?order#
This works quite well but it doesn't update the where clause when you go to Show SQL Query. In some cases I have noticed the report runs very fast and in others it takes a long time. I assume it is pulling all records and then executing the record selection formula when it takes a long time. Is there any way to avoid this.
Lastly, I am not familiar with the Edit Group Selection Formula. What is involved there and what impacts does it have. [sig][/sig]