Hello Marek72,
If I had gotten a nickle for each time a user demanded such a nice set-up I would have been a rich man by now. Never figured out how to meet their demands.
Basically the query panel gives all the tools to create a static SQL statement that runs against the database. This is very restrictive for our problem, because omitting input into the where clause by not entering data into a prompt gives you a statement that will never return any data.
What you would want is something more dynamic, so if you would not use the prompt the entire prompt-part is deleted from the SQL and a modified SQL is generated that meets the demand.
Basically this is as far as I have gotten and if some expert has a solution I would very , very much appreciate it. Must be something complex , though.