Hi Shalom, Is the input-control you added is a user-entered value, something like a text-box? If so you should use something like: Code:select count(*) as summ from payxx where color=$P!{InputTest} Do mind the "!" after $P, it is important to use your parameter in a SQL statement. If your input-control is a multi-select value, something like a combo-box, your SQL statement will look like: Code:[code]select count(*) as summ from payxx where $X{IN,color,InputTest} HTH, Kumar Rahul Post edited by: Kumar_rahul, at: 2008/02/21 05:44