Thank you for your prompt reply.
I tried to follow your instructions but in the end, when i pressed "Run entire model" i was never prompted to choose the value for the Where Clause expression, nor for the name of the output shapefile.
I have attached an image of the design of the model i built.
I made a XY event layer (input_data_layer) from the original table "input_data.txt".
Then i inserted the "Select" tool.
I linked the event layer with the tool (as Input features).
I opened the tool, clicked the SQL button and i wrote a valid expression [this is how it looks like (FieldName = 'value')], i copied the expression and i clicked on cancel to exit the SQL.
I inserted a new variable of the type "String".
I opened the variable and pasted the aforementioned expression.
I linked the variable to the tool (as Expression).
I set both this variable and the output file as model parameters.
I ran the entire model but it created only one output file based on the value of the expression i had created.
I was never prompted to choose among the available values in the layer, nor to give a name to the output.
I repeated the steps above and instead of specifying a particular value in the SQL expression i left it blank [(FieldName = '')] and reran the model. Then i got an error warning that no selection was made..
Any ideas of what i might be doing wrong?
Thanks in advance